Fix header user menu button shifting on open (#74)

Base UI's PopoverTrigger injects invisible focus guard <span> elements
as siblings when the popover opens. The space-x-2 utility (which uses
> * + *) applied margin to these spans, causing the button to shift.

Replace space-x-2 with gap-2 which is unaffected by DOM changes.

Co-authored-by: Matt Kane <[email protected]>
This commit is contained in:
Sarah DayanandMatt Kane authored and GitHub committed 2026-04-06 07:32:33 +01:00
1 parent f5d0e8dd17
commit 28f98fda4f
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@ export function Header() {
<Sidebar.Trigger />
{/* Right side actions */}
<div className="flex items-center space-x-2">
<div className="flex items-center gap-2">
{/* View site link */}
<LinkButton variant="ghost" size="sm" href="/" external>
<ArrowSquareOut className="h-4 w-4 mr-1" />