Skip to content

Commit 5810bcd

Browse files
authored
fix(home): crop the preview image that doesn't match 1.91:1 (#1325)
1 parent 897b57b commit 5810bcd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

_sass/addon/commons.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ sup {
309309
.preview-img {
310310
aspect-ratio: 40 / 21;
311311
width: 100%;
312-
height: 100%;
313312
overflow: hidden;
314313

315314
@extend %rounded;
@@ -324,6 +323,10 @@ sup {
324323
object-fit: cover;
325324

326325
@extend %rounded;
326+
327+
@at-root #post-list & {
328+
width: 100%;
329+
}
327330
}
328331
}
329332

0 commit comments

Comments
 (0)