From ceab711dc632b7b612016084b5d731be397c418a Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Tue, 21 Apr 2026 12:16:13 +0700 Subject: [PATCH] fix(web): prevent horizontal overflow at 768px on home dashboard (TEC-3089) Add overflow-x-clip on the public layout and home page root wrappers, plus min-w-0 / overflow-hidden guards on the ticker strip containers. The ticker strip renders a whitespace-nowrap w-max flex row that can push documentElement.scrollWidth past clientWidth at narrow viewports; constraining its parent prevents the Playwright regression at 768p. Co-Authored-By: Paperclip --- apps/web/app/[locale]/(public)/layout.tsx | 4 ++-- apps/web/app/[locale]/(public)/page.tsx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/web/app/[locale]/(public)/layout.tsx b/apps/web/app/[locale]/(public)/layout.tsx index cb91945..c63fea0 100644 --- a/apps/web/app/[locale]/(public)/layout.tsx +++ b/apps/web/app/[locale]/(public)/layout.tsx @@ -95,9 +95,9 @@ export default function PublicLayout({ children }: { children: React.ReactNode } ]; return ( -
+
{/* Ticker strip — biến động 7d top 8 quận */} -
+
+
{/* 1. TickerStrip — sticky top, z-45, h=32 */} -
+
-
+
{/* 2. KPI Strip */} @@ -601,6 +601,6 @@ export default function MarketDashboardPage() {
- +
); }