Fix responsive breakpoints and flex layout for sidebar menu

This commit is contained in:
Tola Leng
2026-01-13 01:28:57 +07:00
parent 6ab3be6fe4
commit 4f367b92da
8 changed files with 241 additions and 334 deletions
@@ -1,4 +1,3 @@
import React from "react";
import { Sidebar } from "@/components/dashboard/Sidebar";
import { Header } from "@/components/dashboard/Header";
@@ -7,11 +6,9 @@ import { ServiceNotFound } from "@/components/services/ServiceNotFound";
import { Service } from "@/types/service.types";
interface ServiceDetailWrapperProps {
children: React.ReactNode;
children?: React.ReactNode;
isLoading: boolean;
service: Service | null;
sidebarCollapsed: boolean;
toggleSidebar: () => void;
currentUser: any;
handleLogout: () => void;
}
@@ -20,20 +17,16 @@ export const ServiceDetailWrapper = ({
children,
isLoading,
service,
sidebarCollapsed,
toggleSidebar,
currentUser,
handleLogout
}: ServiceDetailWrapperProps) => {
return (
<div className="flex h-screen w-full overflow-hidden bg-background text-foreground">
<Sidebar collapsed={sidebarCollapsed} />
<Sidebar />
<div className="flex flex-col flex-1 min-w-0">
<Header
currentUser={currentUser}
onLogout={handleLogout}
sidebarCollapsed={sidebarCollapsed}
toggleSidebar={toggleSidebar}
/>
{isLoading ? (
@@ -48,4 +41,4 @@ export const ServiceDetailWrapper = ({
</div>
</div>
);
};
};