From c186f51ae0ad7e5bc573d90c69574557c797c00d Mon Sep 17 00:00:00 2001 From: simoleo89 Date: Wed, 15 Jul 2026 20:59:53 +0200 Subject: [PATCH] Widen admin by escaping the public max-w-7xl chrome. Render /admin outside the site header/nav/footer grid so housekeeping uses the full viewport width. Co-authored-by: Cursor --- src/app/layout.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 37194672..3f10734f 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -71,6 +71,7 @@ export default async function RootLayout({ const pathname = headersList.get("x-pathname") || headersList.get("next-url") || ""; const isClient = pathname === "/client" || pathname.startsWith("/client/"); + const isAdmin = pathname === "/admin" || pathname.startsWith("/admin/"); const nitroUrl = await siteSettings.get("nitro_client_url", ""); return ( - {isClient ? ( + {isClient || isAdmin ? ( children ) : ( <>