From 0f05f9c32c72985fb1a83d13bd447835dcd733fb Mon Sep 17 00:00:00 2001 From: patriceac <48073125+patriceac@users.noreply.github.com> Date: Wed, 28 Dec 2022 17:30:59 -0800 Subject: [PATCH] Limit the size of zoomed-in source images If the source image has a high enough resolution it won't fit on the screen when hovering over it. This simple fix limits the max size so the user always has a chance to see the full image. --- ui/media/css/main.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/media/css/main.css b/ui/media/css/main.css index 3a4883a7..dc2d6b8c 100644 --- a/ui/media/css/main.css +++ b/ui/media/css/main.css @@ -1112,6 +1112,8 @@ div.task-initimg:hover div.task-fs-initimage { z-index: 9999; box-shadow: 0 0 30px #000; margin-top:-64px; + max-width: 75vw; + max-height: 75vh; } div.top-right { position: absolute;