fix(desktop): keep macOS overlay close position unchanged

Drop the extra 0.5rem so the close cluster sits exactly at
--titlebar-tools-right like the shell's titlebar tools: identical to
main on macOS (0.75rem), flush beside native controls on Windows/Linux.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Hermes Agent
2026-09-25 17:08:28 -05:00
committed by brooklyn!
parent 658578bdbf
commit f9b991f918
2 changed files with 2 additions and 2 deletions

View File

@@ -290,7 +290,7 @@ export function OverlayNav({ footer, groups }: { footer?: ReactNode; groups: Ove
and the height matches the strip so the trigger lines up with the X. */}
<div
className={cn(
'pointer-events-none relative z-20 h-[calc(var(--titlebar-height)+0.1875rem)] items-center justify-between gap-2 pl-3 pr-[calc(var(--titlebar-tools-right,0.75rem)+3rem)]',
'pointer-events-none relative z-20 h-[calc(var(--titlebar-height)+0.1875rem)] items-center justify-between gap-2 pl-3 pr-[calc(var(--titlebar-tools-right,0.75rem)+2.25rem)]',
BAR_HIDDEN
)}
>

View File

@@ -120,7 +120,7 @@ export function OverlayView({
</div>
)}
<div className="pointer-events-auto absolute right-[calc(var(--titlebar-tools-right,0.75rem)+0.5rem)] top-[calc(0.1875rem+var(--titlebar-height)/2)] flex -translate-y-1/2 items-center gap-1.5 [-webkit-app-region:no-drag]">
<div className="pointer-events-auto absolute right-[var(--titlebar-tools-right,0.75rem)] top-[calc(0.1875rem+var(--titlebar-height)/2)] flex -translate-y-1/2 items-center gap-1.5 [-webkit-app-region:no-drag]">
{titlebarActions}
<Button