diff --git a/apps/web/src/app/(main)/dashboard/layout.tsx b/apps/web/src/app/(main)/dashboard/layout.tsx index 936e28c7..df754d87 100644 --- a/apps/web/src/app/(main)/dashboard/layout.tsx +++ b/apps/web/src/app/(main)/dashboard/layout.tsx @@ -28,19 +28,47 @@ export default function DashboardLayout({ )} -
-
- setShowSidebar(true)}> - - - - Opensox - + {showSidebar && ( +
setShowSidebar(false)} + className="fixed inset-0 xl:hidden" + > +
+
+ + + + + Opensox + +
+
+ {children} +
+
+
+ )} + {!showSidebar && ( +
+
+ setShowSidebar(true)}> + + + + Opensox + +
+
+ {children} +
-
- {children} -
-
+ )}
); }