File tree 2 files changed +3
-6
lines changed
app/(app)/docs/[[...slug]]
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import { OpenInV0Cta } from "@/components/open-in-v0-cta"
15
15
import { DocsPager } from "@/components/pager"
16
16
import { DashboardTableOfContents } from "@/components/toc"
17
17
import { badgeVariants } from "@/registry/new-york/ui/badge"
18
- import { ScrollArea } from "@/registry/new-york/ui/scroll-area"
19
18
20
19
interface DocPageProps {
21
20
params : {
Original file line number Diff line number Diff line change @@ -44,18 +44,16 @@ export function DocsSidebarNavItems({
44
44
pathname,
45
45
} : DocsSidebarNavItemsProps ) {
46
46
return items ?. length ? (
47
- < div className = "grid grid-flow-row auto-rows-max text-sm" >
47
+ < div className = "grid grid-flow-row auto-rows-max gap-0.5 text-sm" >
48
48
{ items . map ( ( item , index ) =>
49
49
item . href && ! item . disabled ? (
50
50
< Link
51
51
key = { index }
52
52
href = { item . href }
53
53
className = { cn (
54
- "group flex w-full items-center rounded-md border border-transparent px-2 py-1 hover:underline" ,
54
+ "group flex w-full items-center px-2 py-1 font-normal text-foreground hover:underline underline-offset-2 " ,
55
55
item . disabled && "cursor-not-allowed opacity-60" ,
56
- pathname === item . href
57
- ? "font-medium text-foreground"
58
- : "text-muted-foreground"
56
+ pathname === item . href && "underline"
59
57
) }
60
58
target = { item . external ? "_blank" : "" }
61
59
rel = { item . external ? "noreferrer" : "" }
You can’t perform that action at this time.
0 commit comments