fix(home): crop the preview image that doesn't match 1.91:1 (#1325)

This commit is contained in:
Cotes Chung 2023-10-16 01:51:02 +08:00 committed by GitHub
parent 897b57bfb4
commit 5810bcd1d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -309,7 +309,6 @@ sup {
.preview-img { .preview-img {
aspect-ratio: 40 / 21; aspect-ratio: 40 / 21;
width: 100%; width: 100%;
height: 100%;
overflow: hidden; overflow: hidden;
@extend %rounded; @extend %rounded;
@ -324,6 +323,10 @@ sup {
object-fit: cover; object-fit: cover;
@extend %rounded; @extend %rounded;
@at-root #post-list & {
width: 100%;
}
} }
} }