fix: restore auto-scaling for collapsed nodes in v2#2108
Open
maxy-shpfy wants to merge 1 commit intomasterfrom
Open
fix: restore auto-scaling for collapsed nodes in v2#2108maxy-shpfy wants to merge 1 commit intomasterfrom
maxy-shpfy wants to merge 1 commit intomasterfrom
Conversation
🎩 PreviewA preview build has been created at: |
8 tasks
Collaborator
Author
This was referenced Apr 22, 2026
Mbeaulne
approved these changes
Apr 22, 2026
camielvs
approved these changes
Apr 22, 2026
This was referenced Apr 23, 2026
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.


Description
Introduces a maximum scale cap (
MAX_COLLAPSED_SCALE = 7) for collapsed task nodes to prevent them from scaling indefinitely when zooming out. The--collapsed-scaleCSS variable is now computed asmin(ZOOM_THRESHOLD / zoom, MAX_COLLAPSED_SCALE)and applied alongside the existing--zoom-levelvariable. Additionally, the perceived font size for collapsed node labels has been increased from32pxto36pxto improve readability at collapsed scale.Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
ZOOM_THRESHOLD(0.3) to trigger collapsed node rendering.Additional Comments
The
MAX_COLLAPSED_SCALEconstant is defined inflowCanvasDefaults.tsto keep it consistent and reusable across both the Editor and RunView canvases.