From a73d8d38974e5ed0173c71e7f8e669d5cf0a7afd Mon Sep 17 00:00:00 2001 From: "yves.gugger" Date: Wed, 10 Dec 2025 16:29:28 +0100 Subject: [PATCH] refactor: Consistent max-width for Command Center header and content LAYOUT CHANGES: 1. CommandCenterLayout header now uses max-w-7xl: - Header width matches content width exactly - Added mx-auto for centering - Cleaner, more consistent visual alignment 2. Main content area: - max-w-7xl and centering now in layout wrapper - Consistent padding: py-6 sm:py-8 3. PageContainer simplified: - Removed max-w-7xl mx-auto (now in parent) - Just provides space-y-6 for child spacing 4. Header bar improvements: - Slightly reduced height: h-16 sm:h-18 - Better button styling (hover states) - Truncation for long titles on mobile - Icons slightly larger for better visibility RESULT: All Command Center pages now have perfectly aligned header and content with the same max-width (max-w-7xl). --- .../src/components/CommandCenterLayout.tsx | 38 ++++++++++--------- frontend/src/components/PremiumTable.tsx | 2 +- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/CommandCenterLayout.tsx b/frontend/src/components/CommandCenterLayout.tsx index ef1d05e..9444a3e 100755 --- a/frontend/src/components/CommandCenterLayout.tsx +++ b/frontend/src/components/CommandCenterLayout.tsx @@ -108,30 +108,30 @@ export function CommandCenterLayout({ )} > {/* Top Bar */} -
-
+
+
{/* Left: Title */} -
+
{title && ( -

{title}

+

{title}

)} {subtitle && ( -

{subtitle}

+

{subtitle}

)}
{/* Right: Actions */} -
+
{/* Quick Search */} @@ -141,7 +141,7 @@ export function CommandCenterLayout({ className="md:hidden flex items-center justify-center w-9 h-9 text-foreground-muted hover:text-foreground hover:bg-foreground/5 rounded-lg transition-colors" > - + {/* Notifications */} @@ -155,7 +155,7 @@ export function CommandCenterLayout({ : "text-foreground-muted hover:text-foreground hover:bg-foreground/5" )} > - + {hasNotifications && ( @@ -213,11 +213,11 @@ export function CommandCenterLayout({ {/* Keyboard Shortcuts Hint */} @@ -228,8 +228,10 @@ export function CommandCenterLayout({
{/* Page Content */} -
- {children} +
+
+ {children} +
diff --git a/frontend/src/components/PremiumTable.tsx b/frontend/src/components/PremiumTable.tsx index ee19383..42fac28 100755 --- a/frontend/src/components/PremiumTable.tsx +++ b/frontend/src/components/PremiumTable.tsx @@ -388,7 +388,7 @@ export function StatCard({ export function PageContainer({ children, className }: { children: ReactNode; className?: string }) { return ( -
+
{children}
)