Skip to content
This repository was archived by the owner on May 25, 2026. It is now read-only.

fix(success): anchor CTAs to body-top at sm+ - #72

Merged
ivorycrayon merged 1 commit into
mainfrom
fix/success-button-vertical-anchor
May 24, 2026
Merged

fix(success): anchor CTAs to body-top at sm+#72
ivorycrayon merged 1 commit into
mainfrom
fix/success-button-vertical-anchor

Conversation

@ivorycrayon

@ivorycrayon ivorycrayon commented May 24, 2026

Copy link
Copy Markdown
Contributor

SuccessView is the only Stage caller that switches body to `flex-row` at `sm`. In the row direction Stage's base `items-center` becomes vertical centring; combined with `flex-1` the two CTAs drift to the middle of the lower zone instead of sitting one row below the hero. On 2000x1080 the buttons land near 800px — visible in the screenshot the issue was reported with.

`sm:items-start` re-anchors the CTAs to the body's `padding-top` edge (one row below the hero) at `sm+`. Mobile keeps the inherited `items-center` for horizontal centring of the stacked column.

Test plan

  • `pnpm typecheck` clean
  • `pnpm test` — 127 / 127 passing
  • Preview the success view (click `Shuffle for real` from `/?demo=loggedin`): buttons sit 1.5rem below the hero on desktop, stacked + centered on mobile

@ivorycrayon
ivorycrayon merged commit 9b396c5 into main May 24, 2026
1 check passed
@ivorycrayon
ivorycrayon deleted the fix/success-button-vertical-anchor branch May 24, 2026 18:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant