From fe3ae1392882e838c40de26040822e8508cd54bb Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Wed, 24 Jun 2026 01:13:48 +0400 Subject: [PATCH] style: interactive elements consistently have cursor pointer --- src/components/rail-nav.tsx | 8 ++++---- src/components/ui/command.tsx | 2 +- src/components/ui/dropdown-menu.tsx | 6 +++--- src/components/ui/radio-group.tsx | 2 +- src/styles/globals.css | 17 +++++++++++++++++ 5 files changed, 26 insertions(+), 9 deletions(-) diff --git a/src/components/rail-nav.tsx b/src/components/rail-nav.tsx index 0f4f0c0..c15eb82 100644 --- a/src/components/rail-nav.tsx +++ b/src/components/rail-nav.tsx @@ -352,7 +352,7 @@ export function RailNav({ currentPage, onNavigate }: RailNavProps) { aria-label={t(labelKey)} aria-current={active ? "page" : undefined} className={cn( - "relative grid place-items-center size-7 rounded-md transition-colors duration-100 shrink-0", + "relative grid place-items-center size-7 rounded-md cursor-pointer transition-colors duration-100 shrink-0", active ? "text-foreground bg-accent" : "text-muted-foreground hover:text-card-foreground hover:bg-accent/50", @@ -385,7 +385,7 @@ export function RailNav({ currentPage, onNavigate }: RailNavProps) { aria-label={t("rail.more.label")} aria-expanded={moreOpen} className={cn( - "grid place-items-center size-7 rounded-md transition-colors duration-100 shrink-0", + "grid place-items-center size-7 rounded-md cursor-pointer transition-colors duration-100 shrink-0", moreOpen ? "text-foreground bg-accent" : "text-muted-foreground hover:text-card-foreground hover:bg-accent/50", @@ -407,7 +407,7 @@ export function RailNav({ currentPage, onNavigate }: RailNavProps) { aria-label={t("rail.settings")} aria-current={currentPage === "settings" ? "page" : undefined} className={cn( - "relative grid place-items-center size-7 rounded-md transition-colors duration-100 shrink-0", + "relative grid place-items-center size-7 rounded-md cursor-pointer transition-colors duration-100 shrink-0", currentPage === "settings" ? "text-foreground bg-accent" : "text-muted-foreground hover:text-card-foreground hover:bg-accent/50", @@ -444,7 +444,7 @@ export function RailNav({ currentPage, onNavigate }: RailNavProps) { setMoreOpen(false); onNavigate(page); }} - className="flex items-center gap-2 w-full px-2 py-1.5 rounded-md hover:bg-accent transition-colors duration-100 text-left" + className="flex items-center gap-2 w-full px-2 py-1.5 rounded-md cursor-pointer hover:bg-accent transition-colors duration-100 text-left" > diff --git a/src/components/ui/command.tsx b/src/components/ui/command.tsx index 6f13c86..8d20bd9 100644 --- a/src/components/ui/command.tsx +++ b/src/components/ui/command.tsx @@ -153,7 +153,7 @@ function CommandItem({