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, 16:00 UTC
fix(web): overlays close on a click over the desktop header (#36250)
Co-authored-by: Roger <roger@Rogerflix.local> Co-authored-by: Julius Marminge <julius0216@outlook.com>
Roger V committed
Nov 14, 2026 at 07:44 UTC
2c61677d59bf28730779a578a7b543528f0ca683
3 files changed
+5
-4
apps/web/src/components/ui/command.tsx
+1
-1
@@ -45,7 +45,7 @@ function CommandDialogViewport({ className, ...props }: CommandDialogPrimitive.V
45
return (
46
<CommandDialogPrimitive.Viewport
47
className={cn(
48
- "pointer-events-none fixed inset-0 z-50 flex flex-col items-center px-4 pt-[max(--spacing(4),4vh,calc(var(--command-titlebar-height)+--spacing(2)))] pb-[max(--spacing(4),4vh)] sm:pt-[max(10vh,calc(var(--command-titlebar-height)+--spacing(2)))] sm:pb-[10vh]",
48
+ "pointer-events-none fixed inset-0 z-50 flex flex-col items-center px-4 [-webkit-app-region:no-drag] pt-[max(--spacing(4),4vh,calc(var(--command-titlebar-height)+--spacing(2)))] pb-[max(--spacing(4),4vh)] sm:pt-[max(10vh,calc(var(--command-titlebar-height)+--spacing(2)))] sm:pb-[10vh]",
49
className,
50
)}
51
data-slot="command-dialog-viewport"
apps/web/src/components/ui/dialog.tsx
+3
-2
@@ -86,8 +86,9 @@ function DialogBackdrop({
86
function DialogViewport({ className, ...props }: DialogPrimitive.Viewport.Props) {
87
return (
88
<DialogPrimitive.Viewport
89
+ // Electron drag regions ignore z-index, so without no-drag a click over a header drag strip never reaches the page.
90
className={cn(
90
- "fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center p-4",
91
+ "fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center p-4 [-webkit-app-region:no-drag]",
92
className,
93
)}
94
data-slot="dialog-viewport"
@@ -146,7 +147,7 @@ function DialogPopup({
147
className={cn(
148
bottomStickOnMobile && "max-sm:grid-rows-[1fr_auto] max-sm:p-0 max-sm:pt-12",
149
variant === "media" &&
149
- "z-[60] grid-rows-1 place-items-center px-4 pb-6 pt-[calc(var(--native-titlebar-height,0px)+1.5rem)] [-webkit-app-region:no-drag]",
150
+ "z-[60] grid-rows-1 place-items-center px-4 pb-6 pt-[calc(var(--native-titlebar-height,0px)+1.5rem)]",
151
)}
152
>
153
{popup}
apps/web/src/components/ui/sheet.tsx
+1
-1
@@ -40,7 +40,7 @@ function SheetViewport({
40
return (
41
<SheetPrimitive.Viewport
42
className={cn(
43
- "fixed inset-0 z-(--z-sheet) grid",
43
+ "fixed inset-0 z-(--z-sheet) grid [-webkit-app-region:no-drag]",
44
side === "bottom" && "grid grid-rows-[1fr_auto] pt-12",
45
side === "top" && "grid grid-rows-[auto_1fr] pb-12",
46
side === "left" && "flex justify-start",