fix(ui): scale touch targets to the pointer, not the window width

A coarse-pointer-only floor keeps switches, tab triggers and scrolled nav
strips from being deformed on a phone, and the topbar reveals the current
section after a route change.
This commit is contained in:
sam committed 2026-10-18 12:32:10 +11:00
1 parent 42c283c4fd
commit b4395046ae
5 files changed
+26 -8

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ const items = computed(() =>
:aria-current="route.path === item.path ? 'page' : undefined"
:class="
cn(
'flex h-8 items-center rounded-md px-3 text-[13px] whitespace-nowrap text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring',
'flex h-8 shrink-0 items-center rounded-md px-3 text-[13px] whitespace-nowrap text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring',
route.path === item.path &&
'bg-secondary font-medium text-foreground',
)