From 0c66fdcafdf36b574927c068342e2b4d89204f44 Mon Sep 17 00:00:00 2001 From: Abdulmalik Yusuf <31839174+abdulmalikyusuf@users.noreply.github.com> Date: Sat, 24 Aug 2024 19:37:52 +0100 Subject: [PATCH] fix: made the sidebar fixed and the content scrollable --- src/app/dashboard/(admin)/admin/(overview)/layout.tsx | 4 ++-- .../settings/_components/layout/sidebar/index.tsx | 2 +- .../(admin)/admin/(settings)/settings/layout.tsx | 6 ++++-- src/app/dashboard/(admin)/layout.tsx | 4 ++-- src/app/dashboard/(user-dashboard)/layout.tsx | 8 ++++---- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/app/dashboard/(admin)/admin/(overview)/layout.tsx b/src/app/dashboard/(admin)/admin/(overview)/layout.tsx index e1b6d7de3..0132a4415 100644 --- a/src/app/dashboard/(admin)/admin/(overview)/layout.tsx +++ b/src/app/dashboard/(admin)/admin/(overview)/layout.tsx @@ -8,9 +8,9 @@ export default function AdminLayout({ children: React.ReactNode; }) { return ( -
+
-
+
{children}
diff --git a/src/app/dashboard/(admin)/admin/(settings)/settings/_components/layout/sidebar/index.tsx b/src/app/dashboard/(admin)/admin/(settings)/settings/_components/layout/sidebar/index.tsx index 48d8aabe8..60778a2a1 100644 --- a/src/app/dashboard/(admin)/admin/(settings)/settings/_components/layout/sidebar/index.tsx +++ b/src/app/dashboard/(admin)/admin/(settings)/settings/_components/layout/sidebar/index.tsx @@ -103,7 +103,7 @@ const SettingsSidebar: FC = ({ sideNavitems = sideItems }) => { ); return ( -
+

diff --git a/src/app/dashboard/(admin)/admin/(settings)/settings/layout.tsx b/src/app/dashboard/(admin)/admin/(settings)/settings/layout.tsx index 7a435a806..68038be43 100644 --- a/src/app/dashboard/(admin)/admin/(settings)/settings/layout.tsx +++ b/src/app/dashboard/(admin)/admin/(settings)/settings/layout.tsx @@ -7,9 +7,11 @@ interface Iproperties { } const layout: FC = ({ children }) => { return ( -
+
-
{children}
+
+ {children} +
); }; diff --git a/src/app/dashboard/(admin)/layout.tsx b/src/app/dashboard/(admin)/layout.tsx index 9d4b79dfe..ea8dc3b4a 100644 --- a/src/app/dashboard/(admin)/layout.tsx +++ b/src/app/dashboard/(admin)/layout.tsx @@ -9,10 +9,10 @@ export default function AdminLayout({ children: React.ReactNode; }) { return ( -
+
-
+
{children}
diff --git a/src/app/dashboard/(user-dashboard)/layout.tsx b/src/app/dashboard/(user-dashboard)/layout.tsx index 54b35b55a..d1699fdfa 100644 --- a/src/app/dashboard/(user-dashboard)/layout.tsx +++ b/src/app/dashboard/(user-dashboard)/layout.tsx @@ -10,13 +10,13 @@ export default function AdminLayout({ children: React.ReactNode; }) { return ( -
+
-
-
+
+
-
+
{children}
{" "}