UI: Fix navbar issues

This commit is contained in:
fuma-nama
2024-10-22 20:12:44 +08:00
parent 2f1dc53cd5
commit bfc2bf2504
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-ui': patch
---
Fix navbar issues
+1 -1
View File
@@ -150,7 +150,7 @@ function SidebarHeader({
links,
...props
}: SharedNavProps & { links: LinkItemType[] }): ReactNode {
if (!props.title || !props.children || links.length === 0) return null;
if (!props.title && !props.children && links.length === 0) return null;
return (
<div className="flex flex-row items-center border-b pb-2 max-md:hidden">