From e153fbd60b90de5dca154e030c0bac85a71b74ee Mon Sep 17 00:00:00 2001 From: Chang Yu-heng Date: Mon, 26 Oct 2015 10:53:40 +0800 Subject: [PATCH] Keep thumbnail aspect ratio --- source/_css/components/_postShorten.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_css/components/_postShorten.scss b/source/_css/components/_postShorten.scss index 03aae7b2e..efc63b985 100644 --- a/source/_css/components/_postShorten.scss +++ b/source/_css/components/_postShorten.scss @@ -95,6 +95,8 @@ display: block; width: $post-thumbnail-image-width; height: $post-thumbnail-image-width; + object-fit: cover; + overflow: hidden; } } .postShorten-wrap { @@ -111,6 +113,8 @@ display: block; width: $post-thumbnail-image-width; height: $post-thumbnail-image-width; + object-fit: cover; + overflow: hidden; } } .postShorten-wrap {