Skip to content

docs(site): land on the install section when arriving from another page - #51

Merged
hyamero merged 1 commit into
stagingfrom
fix/install-scroll
Oct 3, 2026
Merged

hyamero merged 1 commit into
stagingfrom
fix/install-scroll

Conversation

@hyamero

@hyamero hyamero commented Oct 3, 2026

Copy link
Copy Markdown
Member

What changed

Install in the nav now lands on the install section from every page.

Why

On wide screens, the landing's How section adds its scroll runway (1.6 screen heights) in an effect after mount. Arriving from another page, Next has already scrolled to #install by then, so the runway pushes the section about 1,440px below where the scroll stopped. Opening /#install directly does the same.

After the runway is laid out, How now scrolls to the hash target again if the target follows it. This happens on first mount only, so crossing the breakpoint on resize doesn't jump the page.

Checked

  • On a production build, Install from /docs, /examples and /docs/viewer settles at the section's 96px scroll margin, the same as from the landing.
  • Site typecheck and tests (114) pass.

@vercel

vercel Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
stackmap-site Ready Ready Preview Oct 3, 2026 5:21am UTC

@hyamero
hyamero merged commit 810ea11 into staging Oct 3, 2026
7 checks passed
@hyamero
hyamero deleted the fix/install-scroll branch October 3, 2026 10:07
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.4.0-rc.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

This branch was successfully deployed

1 active deployment
Preview — 184aae52 Deployed Oct 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant