forked from cerc-io/snowballtools-base
🎨 style: make the sidebar scrollable
This commit is contained in:
parent
4c8d0e2436
commit
02500b3cba
@ -96,9 +96,12 @@ export const Sidebar = ({ mobileOpen }: SidebarProps) => {
|
|||||||
animate={{ x: isDesktop || mobileOpen ? 0 : -320 }}
|
animate={{ x: isDesktop || mobileOpen ? 0 : -320 }}
|
||||||
exit={{ x: -320 }}
|
exit={{ x: -320 }}
|
||||||
transition={{ ease: 'easeInOut', duration: 0.3 }}
|
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,
|
flex: mobileOpen,
|
||||||
})}
|
},
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
|
Loading…
Reference in New Issue
Block a user