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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user