mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
fix(ui): hide mobile sidebar trigger when sidebar is disabled (#2060)
* fix(ui): hide mobile sidebar trigger when sidebar is disabled - Add sidebarEnabled prop to NavbarSidebarTrigger component - Conditionally render trigger based on sidebar state - Apply fix across docs, notebook, and registry layouts - Prevents unnecessary UI element when sidebar functionality is disabled * remove unsupported options from Notebook --------- Co-authored-by: Fuma Nama <[email protected]>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-ui': patch
|
||||
---
|
||||
|
||||
Fix mobile sidebar trigger visibility when sidebar is disabled
|
||||
@@ -189,7 +189,9 @@ export function DocsLayout({
|
||||
(searchToggle.components?.sm ?? (
|
||||
<SearchToggle className="p-2" hideIfDisabled />
|
||||
))}
|
||||
<NavbarSidebarTrigger className="p-2 -me-1.5 md:hidden" />
|
||||
{sidebarEnabled && (
|
||||
<NavbarSidebarTrigger className="p-2 -me-1.5 md:hidden" />
|
||||
)}
|
||||
</Navbar>
|
||||
))}
|
||||
<LayoutBody
|
||||
|
||||
Reference in New Issue
Block a user