From 1f768be0485bbfa6b542dd24183fe8389acb9355 Mon Sep 17 00:00:00 2001 From: Md Saban <45597394+mdsaban@users.noreply.github.com> Date: Sat, 12 Oct 2024 18:37:20 +0530 Subject: feature(web): Introduce a new sticky navbar. Fixes 520 (#515) * ui: add global header * fix: design fixes * fix: tests * fix navbar background, hide y scrollbar and change sidebar footer to show version --------- Co-authored-by: MohamedBassem --- apps/web/app/dashboard/layout.tsx | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'apps/web/app/dashboard/layout.tsx') diff --git a/apps/web/app/dashboard/layout.tsx b/apps/web/app/dashboard/layout.tsx index b0ac1f7d..cbd51245 100644 --- a/apps/web/app/dashboard/layout.tsx +++ b/apps/web/app/dashboard/layout.tsx @@ -1,3 +1,4 @@ +import Header from "@/components/dashboard/header/Header"; import MobileSidebar from "@/components/dashboard/sidebar/ModileSidebar"; import Sidebar from "@/components/dashboard/sidebar/Sidebar"; import DemoModeBanner from "@/components/DemoModeBanner"; @@ -14,20 +15,23 @@ export default async function Dashboard({ modal: React.ReactNode; }>) { return ( -
- -
- -
-
- {serverConfig.demoMode && } -
- - +
+
+
+ +
+
- {modal} -
{children}
-
+
+ {serverConfig.demoMode && } +
+ + +
+ {modal} +
{children}
+
+
); } -- cgit v1.2.3-70-g09d2