fix: add end prop to all NavLinks to prevent prefix-matching activation

This commit is contained in:
Agent Zero
2026-07-24 22:13:53 +02:00
parent 046f00e464
commit b4121082f7
@@ -156,6 +156,7 @@ export function Sidebar() {
<li key={item.path}>
<NavLink
to={item.path}
end
className={({ isActive }) =>
clsx(
'flex items-center gap-3 px-3 py-2.5 rounded-md text-sm font-medium min-h-touch',
@@ -205,6 +206,7 @@ export function Sidebar() {
<li key={child.path}>
<NavLink
to={child.path}
end
className={({ isActive }) =>
clsx(
'flex items-center gap-2 px-3 py-2 rounded-md text-sm min-h-touch',
@@ -232,6 +234,7 @@ export function Sidebar() {
<li key={item.to}>
<NavLink
to={item.to}
end
className={({ isActive }) =>
clsx(
'flex items-center gap-3 px-3 py-2.5 rounded-md text-sm font-medium min-h-touch',