@@ -69,8 +69,8 @@ export function MobileDocsMenu({ groups, currentPath }: MobileDocsMenuProps) {
6969 < BookOpenText className = "size-4" />
7070 </ div >
7171 < div className = "min-w-0 text-left" >
72- < p className = "truncate text-sm font-medium" > { activeGroup ?. title ?? "Documentation" } </ p >
73- < p className = "truncate text-xs text-muted-foreground" > Current section</ p >
72+ < p className = "break-words text-sm font-medium leading-5 " > { activeGroup ?. title ?? "Documentation" } </ p >
73+ < p className = "text-xs text-muted-foreground" > Current section</ p >
7474 </ div >
7575 < ChevronDown className = "size-4 text-muted-foreground" />
7676 </ div >
@@ -80,8 +80,8 @@ export function MobileDocsMenu({ groups, currentPath }: MobileDocsMenuProps) {
8080 < Tag className = "size-4" />
8181 </ div >
8282 < div className = "min-w-0 text-left" >
83- < p className = "truncate text-sm font-medium" > Latest Version</ p >
84- < p className = "truncate text-xs text-muted-foreground" > Static export ready</ p >
83+ < p className = "text-sm font-medium" > Latest Version</ p >
84+ < p className = "text-xs text-muted-foreground" > Static export ready</ p >
8585 </ div >
8686 < ChevronDown className = "size-4 text-muted-foreground" />
8787 </ div >
@@ -91,7 +91,7 @@ export function MobileDocsMenu({ groups, currentPath }: MobileDocsMenuProps) {
9191 < div className = "pointer-events-none absolute left-0 top-0 z-10 h-3 w-full bg-gradient-to-b from-background to-transparent" />
9292 < div className = "pointer-events-none absolute bottom-0 left-0 z-10 h-3 w-full bg-gradient-to-t from-background to-transparent" />
9393
94- < nav aria-label = "Mobile docs navigation" className = "h-[calc(100vh-19rem) ] overflow-y-auto pb-4 pr-1" >
94+ < nav aria-label = "Mobile docs navigation" className = "max- h-[65vh ] overflow-y-auto pb-4 pr-1" >
9595 < ul className = "space-y-2" >
9696 { groups . map ( ( group ) => {
9797 const containsActive = group . items . some (
@@ -111,8 +111,10 @@ export function MobileDocsMenu({ groups, currentPath }: MobileDocsMenuProps) {
111111 : "text-foreground hover:bg-muted/70 hover:text-foreground"
112112 ) }
113113 >
114- < span className = "truncate" > { group . title } </ span >
115- < ChevronRight className = { cn ( "size-4 transition-transform" , expanded ? "rotate-90" : "rotate-0" ) } />
114+ < span className = "min-w-0 break-words pr-2 leading-5" > { group . title } </ span >
115+ < ChevronRight
116+ className = { cn ( "mt-0.5 size-4 shrink-0 transition-transform" , expanded ? "rotate-90" : "rotate-0" ) }
117+ />
116118 </ button >
117119
118120 { expanded ? (
@@ -126,13 +128,13 @@ export function MobileDocsMenu({ groups, currentPath }: MobileDocsMenuProps) {
126128 href = { item . href }
127129 onClick = { ( ) => setIsOpen ( false ) }
128130 className = { cn (
129- "block rounded-md px-2 py-1.5 text-sm transition-colors" ,
131+ "block rounded-md px-2 py-1.5 text-sm leading-5 transition-colors" ,
130132 isActive
131133 ? "bg-primary/12 font-medium text-primary"
132134 : "text-muted-foreground hover:bg-muted/70 hover:text-foreground"
133135 ) }
134136 >
135- { item . title }
137+ < span className = "break-words" > { item . title } </ span >
136138 </ Link >
137139 </ li >
138140 ) ;
0 commit comments