Open gh0stzk opened 5 months ago
This is because eww now uses gtk's truncation system, and gtk somehow decided that there wasn't enough space to display your text. Setting :show-truncated "false"
solves the problem because this feature isn't supported by gtk, so eww reverts to the old truncation system, which won't truncate anything if you don't set :limit-with
.
I made a pull request to disable truncation by default (see #1084), but while waiting for it to be merged, you can indeed use :show-truncated "false"
to disable it. It may also be possible to disable it by using :hexpand
or :width
on the right widgets.
For anything that isn't a label, having a string as a child implicitly creates a label, which means that
(button "a")
is exactly the same as
(button (label :text "a"))
So, for your powermenu, you'd fix it by using
(button :class "powermenu shutdown"
:onclick "systemctl poweroff"
:tooltip "Shutdown"
(label :show-truncated false
:text ""))
@kStor2poche may also be interested in this post
Yup, I already fixed it this way, thanks anyway.
Thank you, already fix it adding a label to the buttons.
Checklist before submitting an issue
Description of the bug
In the new version eww 0.6.0 my calendar widget broke showing 3 points instead of the time "08:35" for example.
I solved it by adding :show-truncated "false" to labels.
I don't know why it was truncated, it's only 2 digits... anyway...
My powermenu widget uses eventbox and a buttons, not labels and is broken, this is how it looks now,
It should show the glyphs for shutdown, restart, etc.
I don't know if this is related to :show-truncated
Reproducing the issue
My powermenu.yuck
My powermenu.scss
Expected behaviour
Power buttons must show a glyphs
Additional context
Eww log shows nothing..