fix: main content position
This commit is contained in:
parent
13bacf6da0
commit
19b741d674
|
|
@ -67,7 +67,7 @@ export default function AppNavbar(){
|
|||
|
||||
{/* Sidebar */}
|
||||
<div
|
||||
className={`fixed lg:relative w-64 bg-white top-[60px] left-0 h-full z-40 px-3 py-4 transition-transform border
|
||||
className={`fixed lg:relative w-64 bg-white top-[60px] left-0 h-full z-40 px-3 py-4 transition-transform border-x
|
||||
${isSidebarOpen ? 'translate-x-0' : '-translate-x-full'}`}
|
||||
>
|
||||
<ScrollArea className="flex flex-1 h-full">
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ function DashboardLayout() {
|
|||
<AppNavbar />
|
||||
|
||||
{/* Main Content */}
|
||||
<main className={`flex-1 pt-[80px] p-6 bg-white overflow-auto ${
|
||||
<main className={`flex-1 mt-[60px] p-6 bg-white overflow-auto ${
|
||||
openNavbar ? 'lg:ml-64' : 'lg:ml-0'
|
||||
}`}>
|
||||
<Outlet />
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user