Fix tournament nav scrolls to top

This commit is contained in:
Kalle
2026-06-19 14:36:08 +03:00
parent 5162945bb7
commit ba3cb431f2

View File

@@ -85,7 +85,7 @@ export function TournamentNav({
return (
<nav className={styles.nav} aria-label={t("tournament:nav.label")}>
<NavLink to={homeHref} className={styles.identity} end>
<NavLink to={homeHref} className={styles.identity} end preventScrollReset>
<Avatar url={tournament.ctx.logoUrl} size="sm" alt="" />
<div className={styles.identityText}>
<span className={styles.identityName}>{name}</span>
@@ -278,6 +278,7 @@ function NavItemLink({
to={item.to}
end={item.end ?? true}
prefetch="intent"
preventScrollReset
className={({ isActive }) =>
clsx(overflow ? styles.overflowLink : styles.link, {
[styles.linkActive]: isActive,