Format the InputMode with fixed width in compact-bar #3857
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.
Problem
The width of the
InputMode
in the compact-bar is not constant, it is based on the length of the mode. When switching between modes, the width of the mode part changes which is annoying as the rest of the bar also changes along with it.Proposal
Set the width of the part to the max width of all input modes.
Feel free to push back as this may go against the naming of "compact-bar", but I feel the bar looks nicer when it's stable. I'm also happy to make this configurable, just let me know.
Before
After