Fix horizontal scroll and text wrapping on /lite page#769
Merged
Conversation
The text block used a fixed width: 1200px and the hero and CTA blocks used a 100vw / -50vw full-bleed hack. Both overflowed the viewport (a persistent horizontal scrollbar with classic scrollbars) and stopped the intro text from wrapping below 1200px. Use width: 100% with max-width and rely on the already full-bleed content container instead. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bghgary
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
/litepage showed a horizontal scrollbar, and the intro text block did not wrap to the viewport when the window was resized narrower than ~1200px (reported with a screenshot showing clipped/overflowing text and a bottom scrollbar).Root cause
Three CSS issues on blocks used by the
/litepage:textBlock.css—.content-container > .text-blockused a fixedwidth: 1200px(pluspadding: 0 !important). Below 1200px the text box stayed 1200px wide, so the paragraph wrapped at 1200px and overflowed the viewport. Between ~1025–1199px this produced a visible horizontal scrollbar; below 1024px it was only masked by a globaloverflow-x: hidden.heroBlock.css— used thewidth: 100vw; left: 50%; margin-left/right: -50vwfull-bleed hack.100vwincludes the vertical scrollbar width, so it overflowed by ~half the scrollbar on every width (a thin persistent scrollbar with classic scrollbars). This completes the earlier partial fix in5958b72c, which setwidth: 100%but left the-50vwmargins in place.ctaBlock.css— same100vw/-50vwfull-bleed hack as the hero block.Fix
width: 100%; max-width: 1200pxwith0 15pxgutters — fluid below 1200px, still centered at 1200px on desktop.100vw/-50vwhack with plainwidth: 100%. Because.content-containeris already full-bleed, both still span edge-to-edge.Verification
Built the site and measured document overflow with Playwright at 480–1400px:
scrollWidth == clientWidth, no horizontal scrollbar (was ~8px before the hero/CTA fix).Changes are limited to 3 CSS files;
heroBlockandctaBlockare only used on the/litepage.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com