mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
UI: Fix TOC overflow problems
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-ui': patch
|
||||
---
|
||||
|
||||
Fix TOC overflow problems
|
||||
@@ -154,7 +154,7 @@ function TOCItem({ item }: { item: TOCItemType }): React.ReactElement {
|
||||
<Primitive.TOCItem
|
||||
href={item.url}
|
||||
className={cn(
|
||||
'py-1 transition-colors data-[active=true]:font-medium data-[active=true]:text-primary',
|
||||
'py-1 transition-colors [overflow-wrap:anywhere] data-[active=true]:font-medium data-[active=true]:text-primary',
|
||||
item.depth <= 2 && 'ps-4',
|
||||
item.depth === 3 && 'ps-7',
|
||||
item.depth >= 4 && 'ps-10',
|
||||
|
||||
Reference in New Issue
Block a user