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", )} >