From b383026ec80f0dbdd8530bc168731be774a838b3 Mon Sep 17 00:00:00 2001 From: Faran Javed Date: Wed, 21 May 2025 16:17:14 +0500 Subject: [PATCH] [FIX]: #1497 Hide nav icon for sm screens if sider collapased is disable --- .../src/comps/comps/pageLayoutComp/pageLayout.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/packages/lowcoder/src/comps/comps/pageLayoutComp/pageLayout.tsx b/client/packages/lowcoder/src/comps/comps/pageLayoutComp/pageLayout.tsx index 13ed39aef..f7e09104a 100644 --- a/client/packages/lowcoder/src/comps/comps/pageLayoutComp/pageLayout.tsx +++ b/client/packages/lowcoder/src/comps/comps/pageLayoutComp/pageLayout.tsx @@ -208,7 +208,7 @@ export function PageLayout(props: LayoutProps & { siderCollapsed: boolean; setSi width={container.siderWidth} style={{ padding: "0px", margin: '0px', backgroundColor: siderStyle?.siderBackground || 'transparent' }} collapsible={container.siderCollapsible && !isMobile} - breakpoint="sm" + breakpoint={container.siderCollapsible ? "sm" : undefined} collapsedWidth={container.siderCollapsedWidth} collapsed={siderCollapsed} onCollapse={(value) => onSiderCollapse(value)} > @@ -267,7 +267,7 @@ export function PageLayout(props: LayoutProps & { siderCollapsed: boolean; setSi width={container.siderWidth} style={{ padding: "0px", margin: '0px', marginTop: style.borderWidth, backgroundColor: siderStyle?.siderBackground || 'transparent' }} collapsible={container.siderCollapsible && !isMobile} - breakpoint="sm" + breakpoint={container.siderCollapsible ? "sm" : undefined} collapsedWidth={container.siderCollapsedWidth} collapsed={siderCollapsed} onCollapse={(value) => setSiderCollapsed(value)} > @@ -334,7 +334,7 @@ export function PageLayout(props: LayoutProps & { siderCollapsed: boolean; setSi width={container.siderWidth} style={{ padding: "0px", margin: '0px', backgroundColor: siderStyle?.siderBackground || 'transparent' }} collapsible={container.siderCollapsible && !isMobile} - breakpoint="sm" + breakpoint={container.siderCollapsible ? "sm" : undefined} collapsedWidth={container.siderCollapsedWidth} reverseArrow={true} collapsed={siderCollapsed} onCollapse={(value) => setSiderCollapsed(value)} @@ -430,7 +430,7 @@ export function PageLayout(props: LayoutProps & { siderCollapsed: boolean; setSi width={container.siderWidth} style={{ padding: "0px", margin: '0px', backgroundColor: siderStyle?.siderBackground || 'transparent'}} collapsible={container.siderCollapsible && !isMobile} - breakpoint="sm" + breakpoint={container.siderCollapsible ? "sm" : undefined} collapsedWidth={container.siderCollapsedWidth} reverseArrow={true} collapsed={siderCollapsed} onCollapse={(value) => setSiderCollapsed(value)}