mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Fix regression around FacePile with overflow (#11527)
* Work around compound-web AvatarStack not applying overlap to non-Avatars * Fix FacePile overflow tile not being layed out correctly
This commit is contained in:
parent
9eda619395
commit
93ccccc03d
2 changed files with 3 additions and 1 deletions
|
@ -20,6 +20,7 @@ limitations under the License.
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
background-color: $spacePanel-bg-color;
|
background-color: $spacePanel-bg-color;
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: "";
|
content: "";
|
||||||
|
|
|
@ -57,7 +57,8 @@ const FacePile: FC<IProps> = ({
|
||||||
|
|
||||||
const pileContents = (
|
const pileContents = (
|
||||||
<>
|
<>
|
||||||
{overflow ? <span className="mx_FacePile_more" /> : null}
|
{/* XXX: The margin-left is a workaround for Compound's styling excluding this element and being overly specific */}
|
||||||
|
{overflow ? <span className="mx_FacePile_more" style={{ marginLeft: `calc(${size} * -0.2)` }} /> : null}
|
||||||
{faces}
|
{faces}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue