Optimization on Calendar Page
This commit is contained in:
@@ -208,8 +208,8 @@ export default function DashboardLayout({ user, children }: DashboardLayoutProps
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* Sidebar */}
|
||||
<aside className={`fixed lg:static inset-y-0 left-0 z-50 w-64 bg-white flex flex-col h-screen border-r border-gray-200 transform transition-transform duration-300 ease-in-out ${
|
||||
{/* Sidebar - fixe sur tous les écrans, seul le contenu principal défile */}
|
||||
<aside className={`fixed inset-y-0 left-0 z-50 w-64 bg-white flex flex-col h-screen border-r border-gray-200 transform transition-transform duration-300 ease-in-out ${
|
||||
sidebarOpen ? 'translate-x-0' : '-translate-x-full lg:translate-x-0'
|
||||
}`}>
|
||||
{/* Logo Section */}
|
||||
@@ -289,8 +289,8 @@ export default function DashboardLayout({ user, children }: DashboardLayoutProps
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
{/* Main Content Area */}
|
||||
<div className="flex-1 flex flex-col">
|
||||
{/* Main Content Area - marge gauche sur desktop pour la sidebar fixe */}
|
||||
<div className="flex-1 flex flex-col lg:ml-64 min-h-screen">
|
||||
{/* Top Navbar */}
|
||||
<header className="bg-white border-b border-gray-200 px-4 sm:px-6 py-3 sm:py-4">
|
||||
<div className="flex items-center justify-between">
|
||||
|
||||
Reference in New Issue
Block a user