diff --git a/app/[locale]/globals.css b/app/[locale]/globals.css index 2f8b948..1cd2bd4 100644 --- a/app/[locale]/globals.css +++ b/app/[locale]/globals.css @@ -2762,9 +2762,11 @@ html[data-theme="dark"] .ai-reasoning-card { } /* Global safety: no page-level horizontal scroll. - Use `overflow-x: clip` (not `hidden`) — `hidden` turns body into a scroll - container, which silently breaks `position: sticky` on the navbar. */ -html, body { max-width: 100%; overflow-x: clip; } + Only set overflow-x on html (the real viewport scroll container). + Setting it on body would make body a secondary scroll container and + silently break `position: sticky` on the navbar. */ +html { max-width: 100%; overflow-x: hidden; } +body { max-width: 100%; } /* Misc utilities */ .stack { display: flex; flex-direction: column; }