From b1e24ab1bac48f12c01c6d37b12a17b00f1d23ca Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Tue, 11 Jul 2017 21:36:24 -0500 Subject: fit img to the .thumbnail div --- static/css/style.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 248b2b6..f63fc31 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -136,9 +136,11 @@ tr:nth-child(even) { background: #eee } overflow: hidden; margin: 5px 8px 5px 0; box-shadow: 0 0 8px #666; - display: flex; - justify-content: center; - align-items: center; +} +.thumbnail img { + width: 100%; + height: 100%; + object-fit: cover; } #TableOfContents, #TOC, .comments { border: 1px solid #eee; -- cgit v1.2.3