fix: avoid impossible state on width changes

This commit is contained in:
vinceh121 2025-10-31 23:58:36 +01:00
parent b3121a3914
commit f12d0bfb9e
No known key found for this signature in database
GPG Key ID: 780725DCACF96F16

View File

@ -76,7 +76,7 @@ export default function App(): React.ReactElement {
>
<AuthenticatedContext.Provider value={contextValue}>
<Layout hasSider style={{minHeight: '100vh'}}>
<Layout.Sider collapsible breakpoint='sm' width={220} trigger={null} collapsed={sidebarCollapsed} {...(sm ? {collapsedWidth: 0} : {})}>
<Layout.Sider collapsible breakpoint='sm' width={220} trigger={null} collapsed={sidebarCollapsed && sm} {...(sm ? {collapsedWidth: 0} : {})}>
<Sider isAuthenticated={isAuthenticated}/>
</Layout.Sider>
<Layout>