Skip to content

Give the copy the column width its layout asks for - #390

Merged
singhharsh1708 merged 2 commits into
mainfrom
design/wider-copy-column
Sep 11, 2026
Merged

singhharsh1708 merged 2 commits into
mainfrom
design/wider-copy-column

Conversation

@singhharsh1708

Copy link
Copy Markdown
Owner

The left and right layouts set maxWidth: 620 with side padding of clamp(2rem, 8vw, 8rem). The copy box was border-box, from Tailwind's preflight in the preview and the reset in the exported page and the plugin engine, so that padding came out of the 620px. At 1920 wide the copy had 364px. Headings wrapped to a word per line or ran past their box. A mask reveal ends at clip-path: inset(0), which clips at the box edge, so in those sections the overflow was cut off. Meridian's opening "MACHINED" lost its D.

The box is now content-box in all three renderers. maxWidth is the width of the copy, and the padding sits outside it.

This table counts headings wider than their column, across all 21 templates, measured in headless Chrome against a production build:

viewport before after
1280x720 0 0
1280x800 1 1
1366x768 1 0
1440x900 14 1
1536x864 14 1
1920x1080 39 1
390x844 0 0

At these sizes, no section got taller than its frame and nothing scrolls sideways. The example sites are built by the plugin engine, and their left and right sections go from a 364px column to the full 620px at 1920 wide. I recaptured the gallery stills from this build, and 10 of the 21 changed.

One heading still overflows at most desktop sizes. Greenshift's "Decarbonisation" is a single word 1091px wide at 143px, so it fits no column. Fixing it means shrinking the heading to fit its column, which I'll do next.

A new test in displayParity checks that all three renderers use a content-box box, and it fails against main. Also checked: tsc, eslint, 500 vitest tests, and a production build.

The copy box was border-box in the preview, the export and the plugin
engine, so a layout's side padding came out of its max width. The left
layout's 620px left 364px for the copy at 1920 wide, and 39 headings
across 16 templates ran past their box; a mask reveal clips at that box,
so some were cut off. The box is now content-box, and maxWidth is the
width of the copy.
@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
scrollcraft Ready Ready Preview Sep 11, 2026 8:46pm UTC

@singhharsh1708
singhharsh1708 merged commit 34f08e7 into main Sep 11, 2026
3 checks passed
@singhharsh1708
singhharsh1708 deleted the design/wider-copy-column branch September 11, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant