Widen admin by escaping the public max-w-7xl chrome.
Local Build and Deploy / deploy (push) Successful in 54s
Local Build and Deploy / deploy (push) Successful in 54s
Render /admin outside the site header/nav/footer grid so housekeeping uses the full viewport width. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
0096c55f96
commit
c186f51ae0
1 file changed
+2
-1
+2
-1
@@ -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 (
|
||||
<html
|
||||
@@ -92,7 +93,7 @@ export default async function RootLayout({
|
||||
>
|
||||
<NextIntlClientProvider locale={locale} messages={messages}>
|
||||
<ThemeVars />
|
||||
{isClient ? (
|
||||
{isClient || isAdmin ? (
|
||||
children
|
||||
) : (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user