Stabilize header nav width across locales
This commit is contained in:
@@ -233,10 +233,7 @@ export function SiteHeader({
|
|||||||
initial={false}
|
initial={false}
|
||||||
animate={isScrolled ? { y: -1, scale: 0.985 } : { y: 0, scale: 1 }}
|
animate={isScrolled ? { y: -1, scale: 0.985 } : { y: 0, scale: 1 }}
|
||||||
transition={reducedMotion ? { duration: 0 } : { duration: 0.3, ease: [0.22, 1, 0.36, 1] }}
|
transition={reducedMotion ? { duration: 0 } : { duration: 0.3, ease: [0.22, 1, 0.36, 1] }}
|
||||||
className={cn(
|
className="inline-flex min-w-[31rem] items-center justify-center gap-1 rounded-pill border border-border/70 bg-background/80 p-1.5 backdrop-blur-chrome"
|
||||||
"inline-flex items-center gap-1 rounded-pill border border-border/70 bg-background/80 p-1.5 backdrop-blur-chrome",
|
|
||||||
isArabic ? "w-auto max-w-none" : "min-w-[27rem] max-w-[42rem]",
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
<NavLinks />
|
<NavLinks />
|
||||||
</motion.nav>
|
</motion.nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user