agenda finition

This commit is contained in:
alma 2026-01-20 10:54:29 +01:00
parent 70b125fb5d
commit 7f3269bb8c
2 changed files with 7 additions and 6 deletions

View File

@ -701,8 +701,8 @@ export default async function CalendarPage() {
}, 0); }, 0);
return ( return (
<main className="w-full bg-white" style={{ height: 'calc(100vh - 4rem)' }}> <main className="w-full h-full bg-white flex flex-col">
<div className="w-full h-full px-4 pt-12 pb-4 flex overflow-hidden"> <div className="flex-1 px-4 pt-12 pb-4 flex overflow-hidden">
<CalendarClient <CalendarClient
initialCalendars={calendars} initialCalendars={calendars}
userId={session.user.id} userId={session.user.id}

View File

@ -212,7 +212,7 @@ export function LayoutWrapper({ children, isSignInPage, isAuthenticated }: Layou
<AuthCheck> <AuthCheck>
{!isSignInPage && isAuthenticated && <MainNav />} {!isSignInPage && isAuthenticated && <MainNav />}
<div <div
className={isSignInPage ? "min-h-screen" : "min-h-screen"} className={isSignInPage ? "min-h-screen" : "flex flex-col"}
style={ style={
isSignInPage isSignInPage
? {} // No background style for signin page - let the page component handle it ? {} // No background style for signin page - let the page component handle it
@ -223,14 +223,15 @@ export function LayoutWrapper({ children, isSignInPage, isAuthenticated }: Layou
backgroundRepeat: 'no-repeat', backgroundRepeat: 'no-repeat',
backgroundAttachment: 'fixed', backgroundAttachment: 'fixed',
cursor: 'pointer', cursor: 'pointer',
transition: 'background-image 0.5s ease-in-out' transition: 'background-image 0.5s ease-in-out',
minHeight: 'calc(100vh - 3rem)' // Soustraire la hauteur de la navbar
} }
} }
onClick={!isSignInPage ? changeBackground : undefined} onClick={!isSignInPage ? changeBackground : undefined}
> >
<main>{children}</main> <main className="flex-1">{children}</main>
{!isSignInPage && isAuthenticated && <Footer />}
</div> </div>
{!isSignInPage && isAuthenticated && <Footer />}
<Toaster /> <Toaster />
{/* Notifications stack (calls and emails) */} {/* Notifications stack (calls and emails) */}