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:
5 files changed
+26
-8
No files matched your search
@@ -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',
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user