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
This commit is contained in:
Classic298 authored and GitHub committed 2026-12-01 02:39:41 +04:00
1 parent 4a1384eb48
commit f6e7d221e1
2 files changed
+2 -2

No files matched your search

@@ -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"
>
<div class=" absolute left-0 w-full flex justify-between select-none z-20">
<div>
+1 -1
View File
@@ -24,7 +24,7 @@
</script>
<Drawer bind:show ariaLabel={$i18n.t('Input')}>
<div class="flex h-full min-h-screen flex-col" {oninput}>
<div class="flex h-full min-h-[100dvh] flex-col" {oninput}>
<div
class=" sticky top-0 z-30 flex justify-between bg-base-0 px-4 pt-3 pb-2 dark:bg-base-900 dark:text-base-100"
>