From f6e7d221e1dc99a1132226364706bc644b8e75fa Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 30 Nov 2026 23:39:41 +0100 Subject: [PATCH] fix: the full-screen image viewer is taller than the screen in mobile Safari (#35423) The image viewer took the full screen height including the part behind Safari's toolbars, so the image sat off-centre and the bottom of a tall image was cut off. It now fits the visible screen, as the other dialogs already do. The expanded message editor had the same extra height and now fits the visible screen too. Fixes #35411 --- src/lib/components/common/ImagePreview.svelte | 2 +- src/lib/components/common/InputModal.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/common/ImagePreview.svelte b/src/lib/components/common/ImagePreview.svelte index e4de133c41..e44d5b197b 100644 --- a/src/lib/components/common/ImagePreview.svelte +++ b/src/lib/components/common/ImagePreview.svelte @@ -72,7 +72,7 @@ aria-modal="true" aria-label={alt || $i18n.t('Image')} tabindex="-1" - class="modal fixed top-0 right-0 left-0 bottom-0 bg-base-1000 text-base-0 w-full min-h-screen h-screen flex justify-center z-9999 overflow-hidden overscroll-contain" + class="modal fixed top-0 right-0 left-0 bottom-0 bg-base-1000 text-base-0 w-full h-screen max-h-[100dvh] flex justify-center z-9999 overflow-hidden overscroll-contain" >
diff --git a/src/lib/components/common/InputModal.svelte b/src/lib/components/common/InputModal.svelte index 9aae2455a7..c609ffdae2 100644 --- a/src/lib/components/common/InputModal.svelte +++ b/src/lib/components/common/InputModal.svelte @@ -24,7 +24,7 @@ -
+