From 03cfbca7cfeea2f6efca10c5c1edc8b21b5d2740 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 23 Jun 2024 14:58:08 +0300 Subject: [PATCH] Distraction-free image zooming --- public/style.css | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/public/style.css b/public/style.css index e6bc74ed3..f00cb6c41 100644 --- a/public/style.css +++ b/public/style.css @@ -4536,6 +4536,29 @@ a { padding: 1em; } +.popup:has(.img_enlarged.zoomed).large_dialogue_popup { + height: 100vh !important; + height: 100svh !important; + max-height: 100vh !important; + max-height: 100svh !important; + max-width: 100vw !important; + max-width: 100svw !important; + padding: 0; +} + +.popup:has(.img_enlarged.zoomed).large_dialogue_popup .popup-content { + margin: 0; + padding: 0; +} + +.popup:has(.img_enlarged.zoomed).large_dialogue_popup .img_enlarged_container pre { + display: none; +} + +.popup:has(.img_enlarged.zoomed).large_dialogue_popup .popup-button-close { + display: none !important; +} + .cropper-container { max-width: 100% !important; }