Optimization on Calendar Page

This commit is contained in:
2026-02-15 15:37:31 +01:00
parent 5772a358f5
commit 0c908a21ac
5 changed files with 354 additions and 192 deletions

View File

@@ -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">