Skip to content

Commit

Permalink
Fix the appearance of avatars when they do not load (mastodon#31966)
Browse files Browse the repository at this point in the history
  • Loading branch information
renchap authored Sep 18, 2024
1 parent e3baa1c commit 8b70834
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2032,13 +2032,14 @@ body > [data-popper-placement] {
display: block;
position: relative;
border-radius: var(--avatar-border-radius);
background-color: var(--surface-background-color);

img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: var(--avatar-border-radius);
display: inline-block; // to not show broken images
}

&-inline {
Expand Down

0 comments on commit 8b70834

Please sign in to comment.