chore(layout): update layout to remove full height and adjust min-height

This commit is contained in:
cfngc4594 2025-03-07 15:11:41 +08:00
parent 833a79d6d0
commit c12f734831

View File

@ -4,7 +4,8 @@ import { ThemeProvider } from "@/components/theme-provider";
export const metadata: Metadata = { export const metadata: Metadata = {
title: "monaco-editor-lsp-next", title: "monaco-editor-lsp-next",
description: "A Next.js integration of Monaco Editor with LSP support, free from SSR issues", description:
"A Next.js integration of Monaco Editor with LSP support, free from SSR issues",
}; };
interface RootLayoutProps { interface RootLayoutProps {
@ -13,17 +14,15 @@ interface RootLayoutProps {
export default function RootLayout({ children }: RootLayoutProps) { export default function RootLayout({ children }: RootLayoutProps) {
return ( return (
<html lang="en" className="h-full" suppressHydrationWarning> <html lang="en" suppressHydrationWarning>
<body className="flex min-h-full antialiased"> <body className="flex min-h-screen antialiased">
<ThemeProvider <ThemeProvider
attribute="class" attribute="class"
defaultTheme="system" defaultTheme="system"
enableSystem enableSystem
disableTransitionOnChange disableTransitionOnChange
> >
<div className="w-full"> <div className="w-full">{children}</div>
{children}
</div>
</ThemeProvider> </ThemeProvider>
</body> </body>
</html> </html>