Repository navigation
Phone: scale markers with the chart so it looks like the laptop - #10
Merged
Merged
Conversation
…ks like laptop) The phone chart drew laptop-sized markers (fixed CSS px) into a ~290 px sky, so stars were ~2x too big relative to the sky and bright-star glows blotched. A downloaded snapshot looked right because it is drawn large and shrunk. markerScale() now applies that same shrink live: 1.0 on laptop charts (>=560 px), proportional below, floor 0.35; planets keep a 3 px minimum. The fewer-stars filter (renderMagLimit) is reverted: the snapshot shows every star and looks right, so the phone does too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying skyvault with
|
| Latest commit: |
4527380
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ce6e3cc5.skyvault-25r.pages.dev |
| Branch Preview URL: | https://fix-phone-marker-scale.skyvault-25r.pages.dev |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to #9 after a phone screenshot: the sky still looked coarse.
Root cause: markers are drawn at fixed CSS-pixel sizes tuned for a laptop chart. In a ~290 px phone chart every star is ~2x too big relative to the sky, and bright-star glows blotch. The downloaded snapshot looked right because it is drawn at 1000 px and shrunk to the screen.
Fix:
markerScale()applies that shrink live: 1.0 on laptop charts (>=560 px), proportional below, floor 0.35. Stars, planets (3 px minimum so they stay tappable) and deep-sky glows all scale. The fewer-stars filter from #9 is reverted, because the snapshot shows every star and looks right.Tests: frontend 300 passing (scale formula, scaled star/halo/planet radii, SkyCanvas phone vs laptop, all stars still drawn), lint clean.
Check the Cloudflare preview on a phone before merging.
🤖 Generated with Claude Code