The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 17:15 UTC
fix(desktop): clicking above the Settings or Usage modal closes it again (#36266)
Julius Marminge committed
Nov 13, 2026 at 10:43 UTC
ff30b16af4f9be1cbb96ebf6630e82edc50ee17f
1 file changed
+3
-1
apps/web/src/components/AppRouteModal.tsx
+3
-1
@@ -53,7 +53,9 @@ export function AppRouteModal({ label, children }: { label: string; children: Re
53
"--app-modal-sm-top": `max(1.5rem, ${nativeTitlebarHeight}px)`,
54
} as CSSProperties
55
}
56
- className="fixed inset-0 z-50 flex items-center justify-center sm:p-6 sm:pt-(--app-modal-sm-top) lg:p-10"
56
+ // Electron hit-tests drag regions under the backdrop regardless of z-index; without
57
+ // this, presses above the modal move the window instead of dismissing it.
58
+ className="fixed inset-0 z-50 flex items-center justify-center [-webkit-app-region:no-drag] sm:p-6 sm:pt-(--app-modal-sm-top) lg:p-10"
59
onPointerDown={(event) => {
60
backdropPressRef.current = event.target === event.currentTarget;
61
}}