Add scroll for overflow menus

This commit is contained in:
2025-11-28 14:10:22 +07:00
parent fbc5473f2b
commit a98edbe658
3 changed files with 60 additions and 15 deletions

View File

@@ -422,7 +422,7 @@ const LayoutMenu = () => {
border: 'none',
}}
theme="dark"
className="custom-orange-menu"
className="custom-green-menu"
/>
);
};

View File

@@ -30,8 +30,24 @@ const LayoutSidebar = () => {
zIndex: 9999
}}
>
<LayoutLogo />
<LayoutMenu />
<div style={{
display: 'flex',
flexDirection: 'column',
height: '100vh',
overflow: 'hidden'
}}>
{/* Logo section - fixed height */}
<div style={{flexShrink: 0,minHeight: '64px'}}>
<LayoutLogo />
</div>
{/* Menu section - scrollable */}
<div style={{flex: 1, overflow: 'hidden', display: 'flex', flexDirection: 'column'}}>
<div className="custom-menu-scrollbar" style={{flex: 1, overflowY: 'auto', overflowX: 'hidden', backgroundColor: 'transparent'}}>
<LayoutMenu />
</div>
</div>
</div>
</Sider>
);
};