Skip to content

Commit ce2374c

Browse files
committed
fix(examples): make the minimal-next hub full height
The page root uses `h-full`, but `<html>`/`<body>` weren't full-height (unlike the Vite hub's index.html), so the layout collapsed. Set `h-full` on html/body (plus `m0 of-hidden` and the base surface).
1 parent 70df5c8 commit ce2374c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • examples/minimal-next-devframe-hub/src/client/app

‎examples/minimal-next-devframe-hub/src/client/app/layout.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ const themeScript = `(function(){try{if(window.matchMedia('(prefers-color-scheme
1313

1414
export default function RootLayout({ children }: { children: ReactNode }) {
1515
return (
16-
<html lang="en" suppressHydrationWarning>
16+
<html lang="en" className="h-full" suppressHydrationWarning>
1717
<head>
1818
<script dangerouslySetInnerHTML={{ __html: themeScript }} />
1919
</head>
20-
<body>{children}</body>
20+
<body className="h-full m0 of-hidden bg-base color-base">{children}</body>
2121
</html>
2222
)
2323
}

0 commit comments

Comments
 (0)