You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep the homepage globe in frame when zooming - #1572
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.
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.
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.
TanStack/tanstack.com#1524: Changes the homepage globe’s mobile viewport fit, which overlaps with this change’s responsive sizing.
Suggested reviewers:tkdodo, sukvvon
Pre-merge checks: 2
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
pnpm testand prevented local Chromium startup.Summary by CodeRabbit