[bugfix] Fix wide images being squished when used as instance avatar (#2669)

This commit is contained in:
tobi 2024-02-21 14:24:04 +01:00 committed by GitHub
commit 2d9e498f96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 52 additions and 27 deletions

View file

@ -47,11 +47,20 @@
flex-wrap: wrap;
gap: 1rem;
justify-content: center;
img {
align-self: center;
/*
Shrink too-wide / too-tall instance
icons to sensible proportions. Allow
pretty wide images but prevent things
getting too out of hand + looking bad.
*/
max-height: 4rem;
max-width: 16rem;
}
h1 {
align-self: center;
text-align: center;