From be21b19ecf8a5b1ea6a1e10186696b783725c92a Mon Sep 17 00:00:00 2001 From: Innei Date: Wed, 16 Oct 2024 20:06:30 +0800 Subject: [PATCH] fix(modal): draw modal edge constraints on Windows, close #967 Signed-off-by: Innei --- apps/renderer/src/components/ui/modal/stacked/custom-modal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/renderer/src/components/ui/modal/stacked/custom-modal.tsx b/apps/renderer/src/components/ui/modal/stacked/custom-modal.tsx index 5dc2cb0db..1b7e457fe 100644 --- a/apps/renderer/src/components/ui/modal/stacked/custom-modal.tsx +++ b/apps/renderer/src/components/ui/modal/stacked/custom-modal.tsx @@ -102,7 +102,7 @@ export const DrawerModalLayout: FC = ({ children }) => { className={cn( "flex flex-col items-center overflow-hidden rounded-xl border bg-theme-background p-8 pb-0", "shadow-drawer-to-left w-[60ch] max-w-full", - "fixed inset-y-2 right-2", + "fixed bottom-0 right-2 safe-inset-top-4", )} > {children}