From ddcd7307c7202812b38ad0f83cdf0ff03fb69cf9 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Thu, 19 Mar 2026 21:45:59 +0200 Subject: [PATCH] Ensure modal action is not blocked --- app/components/elements/Dialog.module.css | 5 ++++- app/root.tsx | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/components/elements/Dialog.module.css b/app/components/elements/Dialog.module.css index 534e9aaed..8ef30d526 100644 --- a/app/components/elements/Dialog.module.css +++ b/app/components/elements/Dialog.module.css @@ -46,7 +46,10 @@ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); - margin: auto; +} + +:global(html[data-fuse="true"]) .modal { + max-height: 72dvh; } .fullScreenModal { diff --git a/app/root.tsx b/app/root.tsx index 41bf0cb4c..d505ae915 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -173,6 +173,12 @@ function Document({ dir={i18n.dir()} className={clsx(htmlThemeClass, "scrollbar")} style={htmlStyle} + data-fuse={ + import.meta.env.VITE_FUSE_ENABLED && + !data?.user?.roles.includes("MINOR_SUPPORT") + ? "true" + : undefined + } suppressHydrationWarning >