🎨 style: make the sidebar scrollable

This commit is contained in:
Wahyu Kurniawan 2024-03-06 21:03:01 +07:00
parent 4c8d0e2436
commit 02500b3cba
No known key found for this signature in database
GPG Key ID: 040A1549143A8E33

View File

@ -96,9 +96,12 @@ export const Sidebar = ({ mobileOpen }: SidebarProps) => {
animate={{ x: isDesktop || mobileOpen ? 0 : -320 }}
exit={{ x: -320 }}
transition={{ ease: 'easeInOut', duration: 0.3 }}
className={cn('h-full flex-none w-[320px] flex flex-col', {
className={cn(
'h-full flex-none w-[320px] flex flex-col overflow-y-auto',
{
flex: mobileOpen,
})}
},
)}
>
<div
className={cn(