From 8e5cbd481334579f3b9da6eb396d13bdef7b9210 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 23 Nov 2021 00:39:05 +0100 Subject: Improve thumbnails by keeping aspect ratio. Not using scale-down as that would show backgrond placeholder in some cases. --- example/static/style/base.css | 1 + 1 file changed, 1 insertion(+) (limited to 'example/static/style') diff --git a/example/static/style/base.css b/example/static/style/base.css index cdfbe23..f47e35a 100644 --- a/example/static/style/base.css +++ b/example/static/style/base.css @@ -30,6 +30,7 @@ img.thumbnail { background-size: contain; background-position: center; background-repeat: no-repeat; + object-fit: cover; } img.image { -- cgit v1.2.3-70-g09d2