fix: scrollspy offset
Some checks failed
/ deploy (push) Failing after 2s

This commit is contained in:
Dariusz Niemczyk 2025-04-13 22:02:00 +02:00
parent 17c49a339e
commit 5480ccb256
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ function NavContent({
}) {
return (
<nav className="flex flex-col gap-4 mt-8">
<ScrollSpy activeClass="nav-active">
<ScrollSpy activeClass="nav-active" offsetTop={80}>
{linksOrder.map((value) => (
<a key={value} href={`#${value}`} className="text-lg hover:text-primary transition-colors">

View file

@ -24,7 +24,7 @@ export function MainpageNav({
<NavContainer title={t.nav.title}>
<>
<div className="hidden md:flex md:items-center md:gap-4 lg:gap-8">
<ScrollSpy activeClass="nav-active">
<ScrollSpy activeClass="nav-active" offsetTop={80}>
{linksOrder.map((value) => (
<a