Skip to content

Keep the homepage globe in frame when zooming - #1572

Merged
manudeli merged 3 commits into
mainfrom
fix/home-globe-zoom-limit
Nov 22, 2026
Merged

manudeli merged 3 commits into
mainfrom
fix/home-globe-zoom-limit

Conversation

@manudeli

@manudeli manudeli commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Preserve the original diameter when the desktop globe first opens or resets. Use a square drawing area so the globe keeps its full outline at maximum zoom.
  • Fit the mobile globe to the available width and height, with 20% headroom from its starting size. The zoom-in button, wheel, and pinch use the limit for the current layout.

Verification

  • Matched the pre-PR starting diameter at four desktop widths. Verified the mobile fit at three sizes and checked reset, resizing across the breakpoint, and clamping for button, wheel, and pinch inputs.
  • Formatting, project type checks, and type-aware lint passed.
  • Environment permissions blocked the unit runner's IPC socket during pnpm test and prevented local Chromium startup.

Summary by CodeRabbit

  • Improvements
    • The globe now adjusts its zoom limits and sizing to the available space, keeping the view within bounds when the window is resized.
    • On smaller screens, globe height adapts to the available viewport space; at larger screen sizes, it matches the globe’s width.

@changeset-bot

changeset-bot Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 49077f6

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

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

The maintainers globe now calculates projection sizing and zoom limits based on viewport mode. Its fade-offset calculations and fade masks were removed. The home section also constrains globe height by available viewport height and changes its small-breakpoint sizing.

Changes: Globe layout and rendering

Layer / File(s) Summary
Responsive globe dimensions and zoom bounds
src/components/home/HomeCommunitySection.tsx, src/components/MaintainersMap.tsx
The home section limits globe height based on viewport height and changes its small-breakpoint height. The map calculates mode-specific projection sizing and zoom limits, then updates the zoom extent and clamps the current scale when bounds change.
Viewport effects and surface rendering
src/components/MaintainersMap.tsx
The map removes viewport fade-offset calculations, mobile fade calculations, and fade masks. The animation no longer depends on the surface element, and the surface fills its containing inset area.

Estimated code review effort: 2 (Simple) | ~15 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: tkdodo, sukvvon

Pre-merge checks: Passed 2

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main behavior change: keeping the homepage globe inside the visible frame during zoom. The changeset updates zoom limits derived from the globe atmosphere, clamps the view when the…
Full details: Title check

Explanation

The title names the main behavior change: keeping the homepage globe inside the visible frame during zoom. The changeset updates zoom limits derived from the globe atmosphere, clamps the view when the limit shrinks, and resizes the globe height in the home community section, which matches the stated objective of preserving the globe outline at maximum zoom and fitting it on mobile. The title is short, specific, and free of file lists or vague terms.

  • 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

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Asset Main PR merge build Change
JavaScript 19580.20 KiB 19579.08 KiB 🟢 -1.11 KiB (-0.01%)
JavaScript (gzip) 6443.85 KiB 6443.42 KiB 🟢 -0.42 KiB (-0.01%)
CSS 829.70 KiB 829.57 KiB 🟢 -0.13 KiB (-0.02%)
CSS (gzip) 126.87 KiB 126.88 KiB 🔴 +0.00 KiB (+0.00%)
Page Main (gzip) PR merge build (gzip) Change
/ 596.02 KiB 596.01 KiB 🟢 -0.01 KiB (-0.00%)
/libraries 538.67 KiB 538.67 KiB 🔴 +0.00 KiB (+0.00%)
/start/latest 563.47 KiB 563.46 KiB 🟢 -0.00 KiB (-0.00%)
/router/latest 563.77 KiB 563.76 KiB 🟢 -0.01 KiB (-0.00%)
/query/latest 562.22 KiB 562.21 KiB 🟢 -0.00 KiB (-0.00%)
/table/latest 595.02 KiB 595.02 KiB 🟢 -0.00 KiB (-0.00%)
/charts/latest 644.32 KiB 644.32 KiB 🟢 -0.00 KiB (-0.00%)
/ai/latest 589.16 KiB 589.14 KiB 🟢 -0.02 KiB (-0.00%)
Docs article 549.73 KiB 549.74 KiB 🔴 +0.01 KiB (+0.00%)
Framework docs article 549.73 KiB 549.74 KiB 🔴 +0.01 KiB (+0.00%)
/blog 542.87 KiB 542.88 KiB 🔴 +0.01 KiB (+0.00%)
/maintainers 541.96 KiB 541.96 KiB 🔴 +0.00 KiB (+0.00%)
/showcase 539.93 KiB 539.93 KiB 🔴 +0.00 KiB (+0.00%)
/chat 538.39 KiB 538.39 KiB 🔴 +0.00 KiB (+0.00%)
/chat/c/:conversationId 539.09 KiB 539.10 KiB 🔴 +0.00 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 406cb6f. Gzip sizes are summed per file. Build run

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tanstack-com 49077f6 Commit Preview URL

Branch Preview URL
Nov 22 2026, 06:09 PM

@manudeli
manudeli merged commit 4befa72 into main Nov 22, 2026
10 of 11 checks passed
@manudeli
manudeli deleted the fix/home-globe-zoom-limit branch November 22, 2026 18:14
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