From d4f5df2e4e89131447e098527b610d60e3dfdde1 Mon Sep 17 00:00:00 2001 From: JakeBreath Date: Thu, 17 Sep 2026 11:51:04 -0500 Subject: [PATCH] Metadata modal: size the preview to the image's own ratio The modal preview used a fixed 200px column with object-contain, so wide images rendered as a slim letterboxed rectangle with dead space. The preview now sizes naturally (max 320px wide / 55vh tall, aspect ratio preserved) and the modal column follows it. --- frontend/src/features/upload/UploadPage.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/features/upload/UploadPage.tsx b/frontend/src/features/upload/UploadPage.tsx index 7e508a8..fd9d664 100644 --- a/frontend/src/features/upload/UploadPage.tsx +++ b/frontend/src/features/upload/UploadPage.tsx @@ -310,24 +310,28 @@ function MetadataModal({ -
-
+
+
{(temp.preview_url ?? temp.file_url) ? ( isVideo ? (