mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 07:10:59 +00:00
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:
parent
c25da3a95f
commit
2889d0f60a
1 changed files with 8 additions and 0 deletions
|
@ -1141,6 +1141,11 @@ form .post {
|
|||
.post .attachments a.image img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
max-height: 400px;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.post .attachments video {
|
||||
|
@ -1381,6 +1386,9 @@ form .post {
|
|||
border-radius: 0;
|
||||
}
|
||||
|
||||
.post .attachments a.image img {
|
||||
max-height: 300px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue