@@ -5,8 +5,8 @@ import { useCurrentVersion } from "~/utils/version-resolvers"
55import type { SidebarSection } from "./sidebar"
66
77const getIndentClass = ( depth : number ) => {
8- const indentMap = { 0 : "ml-0 " , 1 : "ml-4 " , 2 : "ml-8 " }
9- return indentMap [ depth as keyof typeof indentMap ] || "ml-8 "
8+ const indentMap = { 0 : "ml-4 " , 1 : "ml-7 " , 2 : "ml-10 " }
9+ return indentMap [ depth as keyof typeof indentMap ] || "ml-10 "
1010}
1111
1212type DocumentationNavLinkProps = {
@@ -24,7 +24,7 @@ export function DocumentationNavLink({ title, to, depth = 0, onClick }: Document
2424 to = { to }
2525 onClick = { onClick }
2626 className = { ( { isActive, isPending } ) =>
27- `block rounded-md px-3 py-2 text-sm md:text-base ${ indentClass }
27+ `block rounded-md px-3 py-1 text-sm md:text-base ${ indentClass }
2828 ${ isPending ? "text-[var(--color-text-hover)]" : "" }
2929 ${
3030 isActive
@@ -46,7 +46,7 @@ interface SectionItemProps {
4646
4747const SectionTitle = ( { title } : { title : string } ) => {
4848 return (
49- < h3 className = "mb-3 px-3 font-semibold text-[var(--color-text-active)] text-base tracking-wide md:text-lg " >
49+ < h3 className = "mb-3 ml-4 px-3 font-semibold text-[var(--color-text-active)] text-sm uppercase tracking-wide md:text-base " >
5050 { title }
5151 </ h3 >
5252 )
@@ -85,7 +85,7 @@ export const SectionItem = ({ item, depth = 0, onItemClick }: SectionItemProps)
8585 return (
8686 < AccordionItem
8787 title = { item . title }
88- titleElement = "h4 "
88+ titleElement = "h5 "
8989 titleClassName = " font-semibold tracking-wide text-[var(--color-text-active)]"
9090 content = { content }
9191 defaultOpen = { true }
0 commit comments