mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 06:31:49 +00:00
fix(ui): remove sidebar layout space when sidebar is disabled (#2067)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-ui': patch
|
||||
---
|
||||
|
||||
Fix layout: remove reserved sidebar space when sidebar is disabled in DocsLayout
|
||||
@@ -79,7 +79,9 @@ export function DocsLayout({
|
||||
const links = getLinks(props.links ?? [], props.githubUrl);
|
||||
|
||||
const variables = cn(
|
||||
'md:[--fd-sidebar-width:268px] lg:[--fd-sidebar-width:286px] xl:[--fd-toc-width:286px]',
|
||||
sidebarEnabled &&
|
||||
'md:[--fd-sidebar-width:268px] lg:[--fd-sidebar-width:286px]',
|
||||
'xl:[--fd-toc-width:286px]',
|
||||
!nav.component && nav.enabled !== false
|
||||
? '[--fd-nav-height:56px] md:[--fd-nav-height:0px]'
|
||||
: undefined,
|
||||
|
||||
Reference in New Issue
Block a user