From c374c97e66bcc1e551890d59f0f6184da0a15748 Mon Sep 17 00:00:00 2001 From: Hafid Nur Date: Thu, 27 Mar 2025 23:15:11 +0700 Subject: [PATCH] fix: Sidebar stick to left. Fit content for different desktop viewports --- apps/backoffice/src/app/accounts/layout.tsx | 4 ++-- apps/backoffice/src/app/dashboard/layout.tsx | 4 ++-- apps/backoffice/src/app/dashboard/page.tsx | 2 +- apps/backoffice/src/app/transactions/layout.tsx | 4 ++-- .../src/organisms/backoffice-sidebar/backoffice-sidebar.tsx | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/backoffice/src/app/accounts/layout.tsx b/apps/backoffice/src/app/accounts/layout.tsx index 423168f..d68b388 100644 --- a/apps/backoffice/src/app/accounts/layout.tsx +++ b/apps/backoffice/src/app/accounts/layout.tsx @@ -5,9 +5,9 @@ import { BackofficeSidebar } from '@imphnen-frontend-service/ui/organisms'; export const AppLayout: FC = (): ReactElement => { return (
-
+
-
+
diff --git a/apps/backoffice/src/app/dashboard/layout.tsx b/apps/backoffice/src/app/dashboard/layout.tsx index 423168f..d68b388 100644 --- a/apps/backoffice/src/app/dashboard/layout.tsx +++ b/apps/backoffice/src/app/dashboard/layout.tsx @@ -5,9 +5,9 @@ import { BackofficeSidebar } from '@imphnen-frontend-service/ui/organisms'; export const AppLayout: FC = (): ReactElement => { return (
-
+
-
+
diff --git a/apps/backoffice/src/app/dashboard/page.tsx b/apps/backoffice/src/app/dashboard/page.tsx index f360744..d1f76c6 100644 --- a/apps/backoffice/src/app/dashboard/page.tsx +++ b/apps/backoffice/src/app/dashboard/page.tsx @@ -101,7 +101,7 @@ export const Components: FC = (): ReactElement => {
diff --git a/apps/backoffice/src/app/transactions/layout.tsx b/apps/backoffice/src/app/transactions/layout.tsx index 423168f..d68b388 100644 --- a/apps/backoffice/src/app/transactions/layout.tsx +++ b/apps/backoffice/src/app/transactions/layout.tsx @@ -5,9 +5,9 @@ import { BackofficeSidebar } from '@imphnen-frontend-service/ui/organisms'; export const AppLayout: FC = (): ReactElement => { return (
-
+
-
+
diff --git a/libs/ui/src/organisms/backoffice-sidebar/backoffice-sidebar.tsx b/libs/ui/src/organisms/backoffice-sidebar/backoffice-sidebar.tsx index 4824a66..b1aa794 100644 --- a/libs/ui/src/organisms/backoffice-sidebar/backoffice-sidebar.tsx +++ b/libs/ui/src/organisms/backoffice-sidebar/backoffice-sidebar.tsx @@ -14,7 +14,7 @@ export const BackofficeSidebar: FC = (): ReactElement => { const isActive = (path: string) => location.pathname.includes(path); return ( -