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

fix(select-ui): set nowrap on window to prevent visual overflow #45

Merged
merged 1 commit into from
May 31, 2024

Conversation

bi0ha2ard
Copy link
Contributor

@bi0ha2ard bi0ha2ard commented May 31, 2024

When calculating the padding for the selection UI, the window width includes the signcolumn, if it's open. In combination with wrap, this leads to seemingly blank lines between items (the red is a highlight for trailing whitespace):

2024-05-31T22-11-13

I couldn't find a way to get the signcolumn width, but disabling line wrapping seems like an OK workaround.

This may change how very long titles are displayed, as these will now be visually truncated. If that's an issue, feel free to close this. I can also just fix this in my local configuration with filetype options for the org-roam-select.

The signcolumn is part of the window width, which makes the padding too
long if it's visible.
@chipsenkbeil
Copy link
Owner

Works for me. Makes sense why the issue was happening and how you solved it. If someone really has a title that long, I'm willing to have this issue get surfaced later.

@chipsenkbeil chipsenkbeil merged commit 841e099 into chipsenkbeil:main May 31, 2024
6 checks passed
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.

2 participants