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

merge-requests/82/merge
Alex Gleason 2020-07-01 17:10:46 -05:00
rodzic 2d194d75aa
commit e965c74760
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

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