fix(docs): restore root layout tags

This commit is contained in:
t8y2 2026-05-13 01:18:59 +08:00
parent 74ad4369f4
commit 8ef1999ec9
3 changed files with 20 additions and 8 deletions

View File

@ -12,13 +12,9 @@ export default async function LangLayout({
const { lang } = await params;
return (
<html lang={lang} className="dark" suppressHydrationWarning>
<body className="flex min-h-screen flex-col">
<RootProvider i18n={i18nUI.provider(lang)} theme={{ enabled: false }}>
{children}
</RootProvider>
</body>
</html>
<RootProvider i18n={i18nUI.provider(lang)} theme={{ enabled: false }}>
{children}
</RootProvider>
);
}

View File

@ -870,6 +870,7 @@ a {
align-items: center;
justify-content: space-between;
gap: 22px;
max-width: calc(var(--landing-max) - 56px);
border: 1px solid rgba(155, 176, 205, 0.14);
border-radius: 10px;
padding-top: 28px;
@ -902,6 +903,12 @@ a {
line-height: 1.65;
}
.landing-section-heading p {
max-width: 650px;
justify-self: end;
text-align: right;
}
.landing-inline-link {
flex-shrink: 0;
gap: 7px;
@ -1434,6 +1441,11 @@ a {
display: block;
}
.landing-section-heading p {
max-width: none;
text-align: left;
}
.landing-inline-link {
margin-top: 16px;
}

View File

@ -15,5 +15,9 @@ export const metadata = {
};
export default function RootLayout({ children }: { children: ReactNode }) {
return children;
return (
<html lang="en" className="dark" suppressHydrationWarning>
<body className="flex min-h-screen flex-col">{children}</body>
</html>
);
}