fix: avoid hydration mismatch for tauri app (#2884)

This commit is contained in:
Huang Xin
2026-01-08 04:05:10 +01:00
committed by GitHub
parent 2ff10f781f
commit 93228c4b2a
+4 -1
View File
@@ -41,7 +41,10 @@ export const viewport = {
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang='en'>
<html
lang='en'
className={process.env['NEXT_PUBLIC_APP_PLATFORM'] === 'tauri' ? 'edge-to-edge' : ''}
>
<head>
<title>{title}</title>
<meta