From 4aaed4264081ead64630087aa240667f20ca4d1b Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 18:17:55 +0800 Subject: [PATCH] fix(app): preserve macos titlebar inset (#34594) Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com> Co-authored-by: opencode-agent[bot] --- packages/app/src/components/titlebar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/app/src/components/titlebar.tsx b/packages/app/src/components/titlebar.tsx index b826001387e..e6c53f9d09a 100644 --- a/packages/app/src/components/titlebar.tsx +++ b/packages/app/src/components/titlebar.tsx @@ -229,7 +229,8 @@ export function Titlebar(props: { update?: TitlebarUpdate }) { }} style={{ "min-height": minHeight(), - "padding-left": mac() && !mobile() ? `${84 / zoom()}px` : 0, + // Keep native macOS traffic lights clear even when the desktop window is narrow. + "padding-left": mac() ? `${84 / zoom()}px` : 0, width: electronWindows() ? `env(titlebar-area-width, calc(100vw - ${windowsControlsWidth()}))` : undefined, "max-width": electronWindows() ? `env(titlebar-area-width, calc(100vw - ${windowsControlsWidth()}))`