From b3d2802739377803b270f44b691bb416fc49643f Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Tue, 6 Oct 2020 15:56:59 -0300 Subject: [PATCH] Changes to the sidebar --- components/ui/Sidebar/Sidebar.module.css | 2 +- components/ui/Sidebar/Sidebar.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ui/Sidebar/Sidebar.module.css b/components/ui/Sidebar/Sidebar.module.css index 1d8cbdb32..b9ba054e2 100644 --- a/components/ui/Sidebar/Sidebar.module.css +++ b/components/ui/Sidebar/Sidebar.module.css @@ -1,3 +1,3 @@ .root { - @apply transition-all duration-75 ease-in-out; + @apply fixed inset-0 overflow-hidden h-full z-50; } diff --git a/components/ui/Sidebar/Sidebar.tsx b/components/ui/Sidebar/Sidebar.tsx index 0adf69917..300a2fce2 100644 --- a/components/ui/Sidebar/Sidebar.tsx +++ b/components/ui/Sidebar/Sidebar.tsx @@ -12,7 +12,7 @@ const Sidebar: FC = ({ className, children, show = true }) => { const rootClassName = cn(s.root, className) return ( -
+
= ({ className, children, show = true }) => { leaveTo="translate-x-full" >
-
+
{children}