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 <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-21 12:16:13 +07:00
parent ef1bdcad1c
commit ceab711dc6
2 changed files with 6 additions and 6 deletions

View File

@@ -95,9 +95,9 @@ export default function PublicLayout({ children }: { children: React.ReactNode }
];
return (
<div className="min-h-screen bg-background">
<div className="min-h-screen w-full overflow-x-clip bg-background">
{/* Ticker strip — biến động 7d top 8 quận */}
<div className="h-ticker-bar border-b border-border bg-background-elevated">
<div className="h-ticker-bar w-full min-w-0 overflow-hidden border-b border-border bg-background-elevated">
<TickerStrip items={tickerItems} />
</div>
<header