mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-16 15:48:45 -05:00
Fix tournament nav scrolls to top
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user