Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 93ccccc

Browse files
authored
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
1 parent 9eda619 commit 93ccccc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

res/css/views/elements/_FacePile.pcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ limitations under the License.
2020
width: 30px;
2121
height: 30px;
2222
background-color: $spacePanel-bg-color;
23+
display: inline-block;
2324

2425
&::before {
2526
content: "";

src/components/views/elements/FacePile.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ const FacePile: FC<IProps> = ({
5757

5858
const pileContents = (
5959
<>
60-
{overflow ? <span className="mx_FacePile_more" /> : null}
60+
{/* XXX: The margin-left is a workaround for Compound's styling excluding this element and being overly specific */}
61+
{overflow ? <span className="mx_FacePile_more" style={{ marginLeft: `calc(${size} * -0.2)` }} /> : null}
6162
{faces}
6263
</>
6364
);

0 commit comments

Comments
 (0)