From 48621f1d50becc9343851afd8627e0b89969171b Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Sun, 23 Jun 2024 02:43:37 +0200 Subject: [PATCH] Fix scaling of enlarged popup image --- public/style.css | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/style.css b/public/style.css index 3df89b441..20dba9f6b 100644 --- a/public/style.css +++ b/public/style.css @@ -4494,11 +4494,9 @@ a { } .img_enlarged { - max-width: 100%; - max-height: 100%; - border-radius: 2px; - border: 1px solid transparent; object-fit: contain; + /* Scaling via flex-grow and object-fit only works if we have some kind of base-height set */ + min-height: 120px; } .cropper-container {