fix(home): crop the preview image that doesn't match 1.91:1 (#1325)
This commit is contained in:
parent
897b57bfb4
commit
5810bcd1d7
1 changed files with 4 additions and 1 deletions
|
@ -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%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue