Cap the maximum height of gallery images to 400px. Set object fit to center the image and then crop so they don't get distorted by aspect ratio changes. (#254)

This commit is contained in:
Tyler Kennedy 2022-12-24 08:34:33 -05:00 committed by GitHub
parent c25da3a95f
commit 2889d0f60a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1141,6 +1141,11 @@ form .post {
.post .attachments a.image img { .post .attachments a.image img {
display: block; display: block;
max-width: 100%; max-width: 100%;
object-fit: cover;
object-position: center;
max-height: 400px;
height: 100%;
width: 100%;
} }
.post .attachments video { .post .attachments video {
@ -1381,6 +1386,9 @@ form .post {
border-radius: 0; border-radius: 0;
} }
.post .attachments a.image img {
max-height: 300px;
}
} }