From 02500b3cbae147a1018be7419b2131cfc03e09c5 Mon Sep 17 00:00:00 2001 From: Wahyu Kurniawan Date: Wed, 6 Mar 2024 21:03:01 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20make=20the=20sidebar=20?= =?UTF-8?q?scrollable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/components/shared/Sidebar/Sidebar.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx b/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx index 1196f47..5dd1ed2 100644 --- a/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx +++ b/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx @@ -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', { - flex: mobileOpen, - })} + className={cn( + 'h-full flex-none w-[320px] flex flex-col overflow-y-auto', + { + flex: mobileOpen, + }, + )} >