diff --git a/desktop/src-tauri/tauri.conf.json b/desktop/src-tauri/tauri.conf.json index 1043c8240d..2d8b54a7a1 100644 --- a/desktop/src-tauri/tauri.conf.json +++ b/desktop/src-tauri/tauri.conf.json @@ -25,8 +25,8 @@ "hiddenTitle": true, "dragDropEnabled": false, "trafficLightPosition": { - "x": 12, - "y": 22 + "x": 16, + "y": 24 }, "backgroundThrottling": "disabled", "minWidth": 800, diff --git a/desktop/src/app/AppShell.tsx b/desktop/src/app/AppShell.tsx index afa5f3ea89..05babfa6c1 100644 --- a/desktop/src/app/AppShell.tsx +++ b/desktop/src/app/AppShell.tsx @@ -768,7 +768,7 @@ export function AppShell() { isHuddleDrawerOpen && "buzz-huddle-app-surface-open", )} > - + {!settingsOpen ? ( ) : null} {settingsOpen ? ( - - - +
+ + + +
) : ( - <> +
- - - +
+ + +
- +
)} - { - const handleWheel = (event: WheelEvent) => { - if (event.clientY <= TOP_CHROME_WHEEL_GUARD_HEIGHT) { - event.preventDefault(); - } - }; - - document.addEventListener("wheel", handleWheel, { - capture: true, - passive: false, - }); - return () => { - document.removeEventListener("wheel", handleWheel, { capture: true }); - }; - }, []); + // On macOS the traffic-light buttons overlay the chrome (see + // `trafficLightPosition` in `tauri.conf.json`), so the nav row clears their + // x-position and shifts to align the nav icon centers with the native dot + // centers. In fullscreen those buttons hide, so use the standard alignment. + const navRowPaddingClass = + isMacPlatform() && !isFullscreen ? "pl-20" : "pl-3"; + const navRowAlignmentClass = + isMacPlatform() && !isFullscreen ? "translate-y-[3px]" : null; return ( - <> -