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:
Michael Telatynski 2023-09-05 10:11:26 +01:00 committed by GitHub
parent 9eda619395
commit 93ccccc03d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,7 @@ limitations under the License.
width: 30px;
height: 30px;
background-color: $spacePanel-bg-color;
display: inline-block;
&::before {
content: "";

View File

@ -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}
</>
);