Use object-fit: contain for sane image thumbnails, fixes #212

This commit is contained in:
Alex Gleason 2020-07-01 17:10:46 -05:00
parent 2d194d75aa
commit e965c74760
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 5 additions and 1 deletions

View file

@ -284,7 +284,7 @@
.compose-form__upload-thumbnail {
border-radius: 4px;
background-position: center;
background-size: cover;
background-size: contain;
background-repeat: no-repeat;
height: 140px;
width: 100%;

View file

@ -31,6 +31,10 @@
.still-image {
height: 100%;
width: 100%;
img {
object-fit: contain;
}
}
.still-image--play-on-hover::before {