Fix the appearance of avatars when they do not load (#31966)

This commit is contained in:
Renaud Chaput 2024-09-18 19:39:15 +02:00 committed by GitHub
parent e3baa1cdda
commit 8b70834035
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2032,13 +2032,14 @@ body > [data-popper-placement] {
display: block; display: block;
position: relative; position: relative;
border-radius: var(--avatar-border-radius); border-radius: var(--avatar-border-radius);
background-color: var(--surface-background-color);
img { img {
display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
border-radius: var(--avatar-border-radius); border-radius: var(--avatar-border-radius);
display: inline-block; // to not show broken images
} }
&-inline { &-inline {