summaryrefslogtreecommitdiff
path: root/example/static/style
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2021-11-23 00:39:05 +0100
committerJoel Klinghed <the_jk@spawned.biz>2021-11-23 00:39:05 +0100
commit8e5cbd481334579f3b9da6eb396d13bdef7b9210 (patch)
tree72d44dd2902bdc240d246258989666d54f992606 /example/static/style
parentf10b50ae35ecae0c9fe7f55736f2c59101ed9064 (diff)
Improve thumbnails by keeping aspect ratio.
Not using scale-down as that would show backgrond placeholder in some cases.
Diffstat (limited to 'example/static/style')
-rw-r--r--example/static/style/base.css1
1 files changed, 1 insertions, 0 deletions
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 {