From b73900718a7f3311bf064747bcff555a4abc27b3 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Tue, 12 May 2026 18:23:51 +0800 Subject: [PATCH] fix: constrain home page content width --- web/src/app/home/layout.tsx | 16 ++++++++++++---- web/src/app/home/monitoring/page.tsx | 6 +++--- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/web/src/app/home/layout.tsx b/web/src/app/home/layout.tsx index 8cce527e..b1c76425 100644 --- a/web/src/app/home/layout.tsx +++ b/web/src/app/home/layout.tsx @@ -58,6 +58,8 @@ function isExtensionsRoute(pathname: string): boolean { ); } +const HOME_CONTENT_MAX_WIDTH = 'max-w-[1360px]'; + export default function HomeLayout({ children, }: Readonly<{ @@ -134,7 +136,9 @@ function HomeLayoutInner({ children }: { children: React.ReactNode }) {
-
+
-
- {mainContent} -
+
+
+ {mainContent} +
+
diff --git a/web/src/app/home/monitoring/page.tsx b/web/src/app/home/monitoring/page.tsx index a86b83ae..942ac2f9 100644 --- a/web/src/app/home/monitoring/page.tsx +++ b/web/src/app/home/monitoring/page.tsx @@ -267,8 +267,8 @@ function MonitoringPageContent() { return (
{/* Filters and Refresh Button - Sticky */} -
-
+
+
{/* Content Area */} -
+
{/* Overview Section */}