refactor: Design System v4 — flat dark theme with icon rail sidebar #119

Merged
chihlasm merged 37 commits from refactor/design-system-v4 into main 2026-03-23 02:06:24 +00:00
Showing only changes of commit dfbb51b582 - Show all commits

View File

@@ -160,7 +160,9 @@ export function Sidebar() {
/* ── Active detection ─────────────────────────────── */
const isActive = (item: NavEntry) => {
if (item.matchPaths) return item.matchPaths.some(p => location.pathname.startsWith(p))
if (item.matchPaths) return item.matchPaths.some(p =>
p === '/' ? location.pathname === '/' : location.pathname.startsWith(p)
)
if (item.href === '/') return location.pathname === '/'
return location.pathname.startsWith(item.href)
}