From abdf1b2f65bc6f5f2195e80899fc7b26386657eb Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Mon, 23 Mar 2026 12:12:46 -0700 Subject: [PATCH] fix: Constrain thumbnails to actual thumbnail size (160px) Prevents large images from pushing metadata and buttons off-screen. Uses object-fit: cover for clean cropping. Also shrink PDF preview. Co-Authored-By: Claude Opus 4.6 --- web/static/style.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/static/style.css b/web/static/style.css index cccdfa9..0021d36 100644 --- a/web/static/style.css +++ b/web/static/style.css @@ -268,10 +268,10 @@ footer a:hover { color: var(--accent); } } .thumbnail { - max-width: 100%; - max-height: 280px; + max-width: 160px; + max-height: 160px; border-radius: 8px; - object-fit: contain; + object-fit: cover; background: var(--bg); display: block; margin: 0 auto; @@ -286,7 +286,7 @@ footer a:hover { color: var(--accent); } .pdf-preview { width: 100%; - height: 360px; + height: 200px; border: none; border-radius: 8px; background: var(--bg);