Skip to content

High performance self-hosted photo and video management solution.

feat(web): Context menu scrolls on small devices (#15367)

Mattia Natali81568dbda34b
diff --git a/web/src/lib/components/shared-components/context-menu/context-menu.svelte b/web/src/lib/components/shared-components/context-menu/context-menu.svelte
index aff583d1fc..b4bf9043be 100644
--- a/web/src/lib/components/shared-components/context-menu/context-menu.svelte
+++ b/web/src/lib/components/shared-components/context-menu/context-menu.svelte
@@ -65,9 +65,9 @@
aria-label={ariaLabel}
aria-labelledby={ariaLabelledBy}
bind:this={menuElement}
- class:max-h-[100vh]={isVisible}
- class:max-h-0={!isVisible}
- class="flex flex-col transition-all duration-[250ms] ease-in-out outline-none"
+ class="{isVisible
+ ? 'max-h-screen max-h-svh'
+ : 'max-h-0'} flex flex-col transition-all duration-[250ms] ease-in-out outline-none overflow-auto"
role="menu"
tabindex="-1"
>