Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format the InputMode with fixed width in compact-bar #3857

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zhyuri
Copy link

@zhyuri zhyuri commented Dec 9, 2024

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

image
image
image
image

After

image
image
image
image

@zhyuri zhyuri changed the title Format the InputMode in compact-bar Format the InputMode with fixed width in compact-bar Dec 9, 2024
@zhyuri zhyuri marked this pull request as ready for review December 9, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant