Skip to content

fix(web): stop stretching the grid behind the thank-you band - #267

Merged
jadhavgaurav merged 1 commit into
mainfrom
development
Sep 10, 2026
Merged

jadhavgaurav merged 1 commit into
mainfrom
development

Conversation

@jadhavgaurav

Copy link
Copy Markdown
Contributor

One commit, one file, apps/web only.

The gridlines behind the thank-you band read as heavy because the asset was being distorted, not because it was too strong. hero-vector-grid.svg is preserveAspectRatio="none", so it fills whatever box it is handed rather than holding its own shape, and the band gave it roughly 1440x430 from a 730x708 source. That drew the vertical lines about three times thicker than the horizontal ones and turned the square cells into wide rectangles.

Holding the source ratio restores square cells and hairline strokes; the band's overflow-hidden crops the excess. The page that owns this asset renders it at native size for the same reason, so this matches an existing treatment rather than inventing one. Opacity 0.5 to 0.35 on top.

A minHeight floor covers narrow viewports where the band can outgrow the ratio. Measured worst case was /thank-you/deal-registration at 375px, where the grid reached 97% of the band and left a sliver at its foot; the floor costs 3% of stretch there and nothing elsewhere.

The shared SVG is untouched, so the two other pages that use it are unaffected.

lint, typecheck and build all pass; all four thank-you routes prerender.

The grid read as heavy because it was being distorted, not because it was too
strong. hero-vector-grid.svg is preserveAspectRatio="none", so it fills
whatever box it is handed rather than holding its own shape, and the band gave
it roughly 1440x430 from a 730x708 source. That drew the vertical lines about
three times thicker than the horizontal ones and turned the square cells into
wide rectangles.

Holding the source ratio restores square cells and hairline strokes; the
band's overflow-hidden crops the excess. The page that owns this asset renders
it at native size for the same reason, so this matches rather than invents.

Opacity 0.5 to 0.35 on top of that, and a minHeight floor for narrow viewports
where the band can outgrow the ratio. Measured worst case was
/thank-you/deal-registration at 375px, where the grid reached 97% of the band
and left a sliver at the foot; the floor costs 3% of stretch there and nothing
anywhere else.
@jadhavgaurav
jadhavgaurav merged commit c123e3e into main Sep 10, 2026
1 of 2 checks passed
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