From daffcf1203c009fe86b936c1958f45b9243d7ca6 Mon Sep 17 00:00:00 2001 From: Wahyu Kurniawan Date: Wed, 6 Mar 2024 11:53:44 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20adjust=20mobile=20sideb?= =?UTF-8?q?ar=20animation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/shared/Sidebar/Sidebar.tsx | 12 +++++++----- packages/frontend/src/pages/org-slug/layout.tsx | 14 +++----------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx b/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx index 06e7b053..14ff0f3b 100644 --- a/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx +++ b/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx @@ -72,17 +72,19 @@ 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] lg:flex hidden flex-col', { + className={cn('h-full flex-none w-[320px] flex flex-col', { flex: mobileOpen, })} >
{/* Logo */} - {!mobileOpen && } +
+ +
{/* Switch organization */}
- +
- +