Skip to content

fix(components/MaintainersMap): restore mobile zoom-in headroom above the starting size - #1628

Merged
tannerlinsley merged 1 commit into
mainfrom
fix/maintainers-map-mobile-zoom-headroom
Nov 23, 2026
Merged

tannerlinsley merged 1 commit into
mainfrom
fix/maintainers-map-mobile-zoom-headroom

Conversation

@sukvvon

@sukvvon sukvvon commented Nov 23, 2026

Copy link
Copy Markdown
Member

Summary

#1572 gave the mobile homepage globe 20% zoom-in headroom above its starting size. #1593 then started the mobile globe at that limit (mobileMaxZoom) while keeping it as the zoom limit, so on phones the globe opens at maximum zoom: Zoom in is disabled from the start, and wheel and pinch can't zoom in either.

This separates the two values. mobileInitialScale keeps #1593's starting size (the globe still opens at 106% of the viewport width), and mobileMaxZoom is set 20% above it again. Desktop is unchanged.

Verification

Measured the homepage globe locally at a 606px-wide window (mobile breakpoint):

main this branch
Starting sphere bbox [-42, 34, 691, 691] [-42, 34, 691, 691]
Zoom in at start disabled enabled
Clicks to max zoom — 1 (sphere 829px wide, 1.2×)
Visible profiles at max — 65
After Reset zoom and tilt — back to [-42, 34, 691, 691]

At 1496px wide, the starting size, max zoom and reset match main. No console errors.

@sukvvon sukvvon self-assigned this Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 19 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eea40f41-a42c-4180-a5aa-614c4c3af1a9
Commits

Reviewing files that changed from the base of the PR and between 908059c and 437ea62.

Files selected for processing: 1

  • src/components/MaintainersMap.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@changeset-bot

changeset-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 437ea62

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Asset Main PR merge build Change
JavaScript 19579.78 KiB 19579.79 KiB 🔴 +0.01 KiB (+0.00%)
JavaScript (gzip) 6444.26 KiB 6443.61 KiB 🟢 -0.65 KiB (-0.01%)
CSS 823.32 KiB 823.32 KiB 0.00 KiB (0.00%)
CSS (gzip) 126.01 KiB 126.01 KiB 0.00 KiB (0.00%)
Page Main (gzip) PR merge build (gzip) Change
/ 595.04 KiB 595.04 KiB 🔴 +0.00 KiB (+0.00%)
/libraries 537.88 KiB 537.91 KiB 🔴 +0.02 KiB (+0.00%)
/start/latest 562.70 KiB 562.69 KiB 🟢 -0.01 KiB (-0.00%)
/router/latest 562.99 KiB 562.99 KiB 0.00 KiB (0.00%)
/query/latest 561.43 KiB 561.44 KiB 🔴 +0.00 KiB (+0.00%)
/table/latest 594.25 KiB 594.25 KiB 🔴 +0.00 KiB (+0.00%)
/charts/latest 643.54 KiB 643.54 KiB 🔴 +0.01 KiB (+0.00%)
/ai/latest 588.38 KiB 588.36 KiB 🟢 -0.02 KiB (-0.00%)
Docs article 548.94 KiB 548.96 KiB 🔴 +0.02 KiB (+0.00%)
Framework docs article 548.95 KiB 548.96 KiB 🔴 +0.02 KiB (+0.00%)
/blog 542.10 KiB 542.12 KiB 🔴 +0.02 KiB (+0.00%)
/maintainers 541.19 KiB 541.21 KiB 🔴 +0.02 KiB (+0.00%)
/showcase 539.14 KiB 539.16 KiB 🔴 +0.02 KiB (+0.00%)
/chat 537.61 KiB 537.62 KiB 🔴 +0.01 KiB (+0.00%)
/chat/c/:conversationId 538.33 KiB 538.35 KiB 🔴 +0.02 KiB (+0.00%)

Page sizes sum the JS and CSS in the TanStack Start manifest for each route and its layouts. Shared files count once per page.

Compared with main at 908059c. Gzip sizes are summed per file. Build run

@tannerlinsley

Copy link
Copy Markdown
Member

Separating the starting scale from the zoom limit fixes the disabled mobile zoom-in control while keeping the opening size and reset unchanged. I’m landing this scoped correction.

AI review notes: Reviewed 437ea62 and traced initial scale, projection sizing, D3 scaleExtent, the zoom buttons and reset. The new limit is 1.2 times the unchanged mobile starting scale; desktop calculations are unchanged. CI passed, reported JavaScript gzip decreased 0.65 KiB and CSS was unchanged. CodeRabbit was neutral because of its rate limit, not an approval. The browser measurements are the author’s evidence; I did not repeat them independently.

@tannerlinsley
tannerlinsley merged commit 88a4be4 into main Nov 23, 2026
11 checks passed
@tannerlinsley
tannerlinsley deleted the fix/maintainers-map-mobile-zoom-headroom branch November 23, 2026 15:29
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.

2 participants