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}