Repository navigation
Status bar: stay on one line and cut a long data folder path - #123
Merged
Merged
Conversation
The bar had no nowrap and nothing that could shrink, so at the 900 px minimum width a long data folder wrapped onto a second line and got clipped. Items keep their size now, and only the path shrinks with an ellipsis. The full path is still in the tooltip, and the button gets an accessible name that says what it does.
Owner
Author
|
Keeping the end ellipsis. A middle cut needs a resize observer and text measuring for one label, and the tooltip already shows the whole path. CI is green. |
A21-devs
commented
Dec 1, 2026
A21-devs
left a comment
Owner
Author
There was a problem hiding this comment.
CSS-only fix plus one span, does what the issue asks. .statusbar > .spacer keeps flex: 1 because it comes after the > * rule and is more specific, and the button's flex: 0 1 auto wins the same way.
| .statusbar > .sb-link { flex: 0 1 auto; min-width: 0; } | ||
| .sb-link svg { flex: none; } | ||
| /* the full path is in the tooltip */ | ||
| .sb-path { overflow: hidden; text-overflow: ellipsis; } |
Owner
Author
There was a problem hiding this comment.
Nit: an end ellipsis hides the most specific part of a path (a long D: path loses its last folder). A middle ellipsis would read better, but it needs measuring in JS, and the tooltip has the full path. Fine for now.
Merged
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.
Closes #113
The status bar is a 24 px flex row with no
nowrap, so with a long data folder at the 900 px minimum width the items wrapped onto a second line and the bottom half was cut off..statusbargetswhite-space: nowrap; overflow: hidden, its items areflex: none.flex: 0 1 auto; min-width: 0). The path is in its own.sb-pathspan withtext-overflow: ellipsis, because a bare text node inside an inline-flex button can't take an ellipsis.aria-label="Open data folder <path>", before a screen reader only heard the path.Testing
npm run typecheck,npm run build