Repository navigation
Fix #949: artboard names fit their artboard when zoomed out - #952
Merged
Merged
Conversation
Artboard names are drawn at a fixed screen size above each artboard, so zoomed out, where artboards shrink on screen, the names ran past them and over their neighbours. A name is now no wider than its artboard on screen, ending in an ellipsis when longer, and an artboard narrower than 24 px shows none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes #949.
Artboard names are drawn at a fixed screen size above each artboard. Zoomed out, the artboards shrink on screen but the names don't, so they ran past their artboards and over each other.
A name is now laid out no wider than its artboard on screen and ends in "…" when it's longer. An artboard narrower than 24 px on screen shows no name. The Artboard tool's own label for the active artboard is unchanged.
Tested:
cargo xtask ci(all 7 steps).artboard_labels_fit_their_artboard: a wide artboard shows the whole name, a narrow one lays it out within its width, and one too small shows none.🤖 Generated with Claude Code