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 24, 00:15 UTC
fix(web): keep portaled menus clickable over Electron drag regions (#12527)
maria committed
Sep 20, 2026 at 18:24 UTC
3cfebf4aa3ce7410806c0ba4cc4d991cc1ce8dbb
1 file changed
+4
apps/web/src/components/ui/menu.tsx
+4
@@ -56,6 +56,10 @@ function MenuPopup({
56
<MenuPrimitive.Popup
57
className={cn(
58
"dropdown-glass relative flex origin-(--transform-origin) rounded-lg shadow-[0_16px_40px_-18px_rgb(0_0_0/55%)] outline-none focus:outline-none dark:shadow-[0_18px_44px_-18px_rgb(0_0_0/80%)]",
59
+ // Portaled menus can overlap an Electron window drag region (e.g.
60
+ // the Review panel header). Drag hit-testing ignores z-index, so
61
+ // the topmost row would stay unhoverable without this opt-out.
62
+ "[-webkit-app-region:no-drag]",
63
!hasExplicitWidthClass && "min-w-32",
64
className,
65
)}