fix(confidence-engine): correct legal footer layout
This commit is contained in:
+3
-2
@@ -1,3 +1,4 @@
|
||||
import React from "react";
|
||||
import "./globals.css";
|
||||
import ThemeToggle from "@/components/theme-toggle";
|
||||
import LogoutButton from "@/components/logout-button";
|
||||
@@ -11,7 +12,7 @@ export const metadata = {
|
||||
export default function RootLayout({ children }) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className="min-h-screen bg-gray-50 text-gray-900">
|
||||
<body className="flex min-h-screen flex-col bg-gray-50 text-gray-900">
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `try { const saved = localStorage.getItem('confidence-engine-theme'); const theme = saved === 'dark' || saved === 'light' ? saved : (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'); document.documentElement.dataset.theme = theme; document.documentElement.style.colorScheme = theme; } catch (_) {}`,
|
||||
@@ -26,7 +27,7 @@ export default function RootLayout({ children }) {
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{children}
|
||||
<div className="flex-1">{children}</div>
|
||||
<footer className="app-chrome border-t border-gray-200/80 px-6 py-5">
|
||||
<LegalNavigation />
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user