From 5810bcd1d7b83e111017831fa82c368a6b15c7cd Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 16 Oct 2023 01:51:02 +0800 Subject: [PATCH] fix(home): crop the preview image that doesn't match 1.91:1 (#1325) --- _sass/addon/commons.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index 528de00..350f94e 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -309,7 +309,6 @@ sup { .preview-img { aspect-ratio: 40 / 21; width: 100%; - height: 100%; overflow: hidden; @extend %rounded; @@ -324,6 +323,10 @@ sup { object-fit: cover; @extend %rounded; + + @at-root #post-list & { + width: 100%; + } } }