fix hydration mismatch: sync html data-scheme default to dark and suppress body attribute warnings
This commit is contained in:
parent
e1250120b1
commit
ef9d44f7d3
6 changed files with 15 additions and 10 deletions
|
|
@ -345,7 +345,7 @@ export default function WebLayout() {
|
|||
</Section>
|
||||
|
||||
<footer className="web-footer glass">
|
||||
<span className="web-footer-label">v2.2.7</span>
|
||||
<span className="web-footer-label">v2.2.8</span>
|
||||
© 2025-2026 Martin Dvořák. All rights reserved (not really I dont care, just
|
||||
follow the GPL3.0 License)
|
||||
</footer>
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ export default function RootLayout({
|
|||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en" data-theme="web" data-scheme="light" suppressHydrationWarning>
|
||||
<body className="antialiased">
|
||||
<html lang="en" data-theme="web" data-scheme="dark" suppressHydrationWarning>
|
||||
<body className="antialiased" suppressHydrationWarning>
|
||||
<ThemeScript />
|
||||
{children}
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue