fix hydration mismatch: sync html data-scheme default to dark and suppress body attribute warnings

This commit is contained in:
dvorakmortonxd 2026-10-05 09:41:04 +02:00
commit ef9d44f7d3
6 changed files with 15 additions and 10 deletions

View file

@ -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>

View file

@ -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>