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:
@@ -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
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user