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

nwggrid: Long label changes grid columns #228

Open
earboxer opened this issue Jan 29, 2024 · 7 comments · May be fixed by #229
Open

nwggrid: Long label changes grid columns #228

earboxer opened this issue Jan 29, 2024 · 7 comments · May be fixed by #229

Comments

@earboxer
Copy link

When I launch nwggrid, I have one app with a really long label ("PulseAudio Volume Control" ). Whenever this app is present, the number of columns is not fixed to the value I defined in grid.conf

One way I found to handle this is by decreasing the font size,

label {
	font-size: 6pt;
}

but I would really like if long labels could either be truncated (with ellipses), or wrapped to multiple lines.

Is there another way to deal with this in the CSS, or do we need code to handle it?

@nwg-piotr
Copy link
Owner

nwg-piotr commented Jan 29, 2024

As stated in README, I withdrew from this project and I am not sure if it is still maintained. The last commit by @Siborgium happened two years ago. Let's see if he's going to respond.

If you by accident are on some wlroots-based compositor, you may want to try nwg-drawer instead. Unfortunately it doesn't support X11 WMs.

@Siborgium
Copy link
Collaborator

What version of nwggrid are you running? Both 0.7.1.1 and one built from c4d8d36 do truncate labels.

@Siborgium
Copy link
Collaborator

I.e. image

@earboxer
Copy link
Author

earboxer commented Feb 1, 2024

Some labels are truncated, but some (notably "PulseAudio Volume Control") are not

2024-02-01T17:38:50,000000000-05:00

2024-02-01T17:43:24,759716711-05:00

And then when I click on a category with apps that don't have long labels, it will show it in e.g. two columns or three columns.

@Siborgium
Copy link
Collaborator

Thanks. I believe I've found the cause of this problem, so stay tuned - I think I'll be able to upload a fix within 2-3 days.

Siborgium added a commit that referenced this issue Feb 6, 2024
Siborgium added a commit that referenced this issue Feb 6, 2024
@Siborgium Siborgium linked a pull request Feb 6, 2024 that will close this issue
@Siborgium
Copy link
Collaborator

@earboxer try the branch linked above. I was unable to reproduce the issue on my own, but I believe this should fix the issue. Please let me know if it does. Otherwise, did you try to set a different number of columns (-n )?

@earboxer
Copy link
Author

earboxer commented Feb 7, 2024 via email

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 a pull request may close this issue.

3 participants