Skip to content

Commit c5697a3

Browse files
authored
feat(ui): pointer cursor when hover over breadcrumbs (#608)
1 parent 8d52197 commit c5697a3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

view/components/layout/dashboard-layout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ export default function DashboardLayout({ children }: { children: React.ReactNod
8383
{breadcrumbs.map((breadcrumb, idx) => (
8484
<React.Fragment key={idx}>
8585
<BreadcrumbItem className="hidden md:block">
86-
<BreadcrumbLink onClick={() => router.push(breadcrumb.href)}>
86+
<BreadcrumbLink
87+
onClick={() => router.push(breadcrumb.href)}
88+
className="cursor-pointer"
89+
>
8790
{breadcrumb.label}
8891
</BreadcrumbLink>
8992
</BreadcrumbItem>

view/components/ui/breadcrumb.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function BreadcrumbLink({
4343
return (
4444
<Comp
4545
data-slot="breadcrumb-link"
46-
className={cn('hover:text-foreground transition-colors', className)}
46+
className={cn('hover:text-foreground transition-colors cursor-pointer', className)}
4747
{...props}
4848
/>
4949
);

0 commit comments

Comments
 (0)