refactor: Improve sidebar state management and layout responsiveness

This commit is contained in:
1808837298@qq.com
2025-03-10 19:48:17 +08:00
parent 49bfd2b719
commit 8b99eec440
3 changed files with 17 additions and 6 deletions

View File

@@ -113,7 +113,7 @@ const PageLayout = () => {
</Sider>
)}
<Layout style={{
marginLeft: styleState.isMobile ? '0' : (styleState.showSider ? (isSidebarCollapsed ? '60px' : '200px') : '0'),
marginLeft: styleState.isMobile ? '0' : (styleState.showSider ? (styleState.siderCollapsed ? '60px' : '200px') : '0'),
transition: 'margin-left 0.3s ease',
flex: '1 1 auto',
display: 'flex',