|
@@ -14,7 +14,7 @@ const geistMono = Geist_Mono({
|
|
|
|
|
|
|
|
export const metadata = {
|
|
export const metadata = {
|
|
|
title: "RHL Lieferscheine",
|
|
title: "RHL Lieferscheine",
|
|
|
- description: "Interne Lieferscheine-App",
|
|
|
|
|
|
|
+ description: "Internal delivery note browser",
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
export default function RootLayout({ children }) {
|
|
export default function RootLayout({ children }) {
|
|
@@ -24,10 +24,17 @@ export default function RootLayout({ children }) {
|
|
|
className={`${geistSans.variable} ${geistMono.variable} min-h-screen bg-background text-foreground antialiased`}
|
|
className={`${geistSans.variable} ${geistMono.variable} min-h-screen bg-background text-foreground antialiased`}
|
|
|
>
|
|
>
|
|
|
<ThemeProvider
|
|
<ThemeProvider
|
|
|
- attribute="class" // <html class="dark"> ...
|
|
|
|
|
- defaultTheme="system" // System-Theme als Default
|
|
|
|
|
- enableSystem // System-Theme berücksichtigen
|
|
|
|
|
- disableTransitionOnChange // keine hässlichen Transition-Jumps
|
|
|
|
|
|
|
+ /*
|
|
|
|
|
+ Theme setup (shadcn/ui + next-themes):
|
|
|
|
|
+ - attribute="class" means themes are controlled via <html class="dark">
|
|
|
|
|
+ - defaultTheme="system" respects the OS preference
|
|
|
|
|
+ - enableSystem keeps system sync
|
|
|
|
|
+ - disableTransitionOnChange avoids flicker/jumpy transitions
|
|
|
|
|
+ */
|
|
|
|
|
+ attribute="class"
|
|
|
|
|
+ defaultTheme="system"
|
|
|
|
|
+ enableSystem
|
|
|
|
|
+ disableTransitionOnChange
|
|
|
>
|
|
>
|
|
|
{children}
|
|
{children}
|
|
|
</ThemeProvider>
|
|
</ThemeProvider>
|