diff --git a/src/components/layout/ClientLayout.tsx b/src/components/layout/ClientLayout.tsx index bddb55f..5d77a4e 100644 --- a/src/components/layout/ClientLayout.tsx +++ b/src/components/layout/ClientLayout.tsx @@ -33,7 +33,6 @@ export default function ClientLayout({ children, initialLibraries = [], initialF if (bg.type === "gradient" && bg.gradient) { return { backgroundImage: bg.gradient, - backgroundAttachment: "fixed" as const, }; } @@ -90,9 +89,18 @@ export default function ClientLayout({ children, initialLibraries = [], initialF // Ne pas afficher le header et la sidebar sur les routes publiques et le reader const isPublicRoute = publicRoutes.includes(pathname) || pathname.startsWith('/books/'); + const hasCustomBackground = preferences.background.type === "gradient" || preferences.background.type === "image"; + return ( -
+ {/* Background fixe pour les images et gradients */} + {hasCustomBackground && ( +
+ )} +
{!isPublicRoute &&
} {!isPublicRoute && (