-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
ui(compact-bar): mode indicator not centered #3248
Comments
Love that fix, looks elegant to me. Not sure what maintainers would think of it. Edit: Just thinking about it, another/easier fix would be: |
ha, yes that should work too, good catch. I probably went with the aligment solution because I read that was a thing in the docs 😄 |
Yup, and the starting code you had was like this, so I think I would have done the same at first too ^^. |
That's great!, I love it too. It seems like your code can cover a variety of cases considering the two empty paddings. If possible, can you make a PR? |
@jaeheonji |
2. Issues with the Zellij UI / behavior / crash
Issue description
I noticed the mode indicator isn't correctly centered when the mode name length > 6, you can see in this video how when switching to renametab/renamepane the text isn't padded (IIRC it's not noticeable on the left side because the
Zellij (session-name)
section includes a whitespace).Screencast from 04-06-2024 05:32:06 PM.webm
This is how I improved the padding in my fork of compact-bar, you can see the mode name is always centered (even short ones like
pane
):Screencast from 04-06-2024 05:44:54 PM.webm
cristiand391/zj-status-bar@2de3d60
If the current padding behavior in zellij's compact-bar isn't the intended and the maintainer agrees, I'm happy to contribute the fix upstream.
Minimal reproduction
save this as layout
switch to renametab or any mode name > 6:
Other relevant information
The text was updated successfully, but these errors were encountered: