From e1a6c15052dc6b8638466ed087e54416cea2131d Mon Sep 17 00:00:00 2001 From: usermod -aG sudo myk Date: Thu, 28 May 2026 13:48:31 -0400 Subject: [PATCH] fix(css): bloque scroll horizontal mobile (overflow-x html + width 100vw body) --- style.css | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/style.css b/style.css index 25cf355..5b8cf6f 100644 --- a/style.css +++ b/style.css @@ -25,7 +25,11 @@ * { box-sizing: border-box; margin: 0; padding: 0; } -html { scroll-behavior: smooth; } +html { + scroll-behavior: smooth; + overflow-x: hidden; + width: 100%; +} body { background: var(--bg); @@ -37,10 +41,13 @@ body { -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; + width: 100%; + max-width: 100vw; + position: relative; } img, svg { max-width: 100%; height: auto; } -code, pre { word-break: break-word; overflow-wrap: anywhere; } +code, pre { word-break: break-word; overflow-wrap: anywhere; max-width: 100%; } a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; } a:hover { opacity: 0.7; }