From 64f11bc05da592f2ee69e744a0c9b205fec5cedb Mon Sep 17 00:00:00 2001 From: Matthew Gibson <237165041+mmmattG@users.noreply.github.com> Date: Tue, 29 Sep 2026 19:56:26 +0800 Subject: [PATCH] fix(web): header buttons no longer overlap the terminal toggle in windowed desktop Under Electron's window controls overlay (desktop off macOS, not fullscreen), the page header pads exactly to the panel toggles' anchor, so the header actions' fixed reservation came up 8px short and the git actions ran 4px into the terminal toggle. Reserve those 8px back at sm when the overlay is visible. --- apps/web/src/components/chat/ChatHeader.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/chat/ChatHeader.tsx b/apps/web/src/components/chat/ChatHeader.tsx index bbe014ddbd06..598f6c4b0336 100644 --- a/apps/web/src/components/chat/ChatHeader.tsx +++ b/apps/web/src/components/chat/ChatHeader.tsx @@ -493,8 +493,10 @@ export const ChatHeader = memo(function ChatHeader({ className={cn( "flex shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3", // Reserve two panel toggles plus their 4px gaps and 1px edge inset. - // The page header adds 8px more right padding at sm. - rightPanelOpen ? "pr-0" : "pr-18.25 sm:pr-14.25", + // The page header adds 8px more right padding at sm, except under a + // window controls overlay, where it pads exactly to the toggles' + // anchor, so those 8px come back here. + rightPanelOpen ? "pr-0" : "pr-18.25 sm:pr-14.25 wco:sm:pr-16.25", "[[data-panel-animations=true]_&]:motion-safe:transition-[padding-right] [[data-panel-animations=true]_&]:motion-safe:duration-(--panel-animation-duration) [[data-panel-animations=true]_&]:motion-safe:ease-out", )} >