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

Fix regression around FacePile with overflow #11527

Merged
merged 2 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions res/css/views/elements/_FacePile.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ limitations under the License.
width: 30px;
height: 30px;
background-color: $spacePanel-bg-color;
display: inline-block;

&::before {
content: "";
Expand Down
3 changes: 2 additions & 1 deletion src/components/views/elements/FacePile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const FacePile: FC<IProps> = ({

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}
</>
);
Expand Down
Loading