Skip to content

Commit 7ed7a86

Browse files
committed
refactor(layout): use transparent border to prevent header height shift
1 parent 2086245 commit 7ed7a86

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/app/header.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,12 @@ export const AppHeader = () => {
137137
window.removeEventListener('scroll', handleScroll, { capture: true })
138138
}
139139
}, [])
140-
141140
return (
142141
<header
143142
className={cn(
144-
'relative flex items-center justify-between px-4 py-2 transition-all duration-100',
143+
'relative flex items-center justify-between border-b border-transparent px-4 py-2 transition-all duration-100',
145144
isScrolled &&
146-
'bg-background/80 supports-backdrop-filter:bg-background/60 border-b shadow-sm backdrop-blur-md'
145+
'bg-background/80 supports-backdrop-filter:bg-background/60 border-border shadow-sm backdrop-blur-md'
147146
)}
148147
>
149148
<BrandLink onClick={() => setMenuOpen(false)} />

0 commit comments

Comments
 (0)