Code Monkey home page Code Monkey logo

Comments (3)

Rayzeq avatar Rayzeq commented on June 20, 2024

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

from eww.

kStor2poche avatar kStor2poche commented on June 20, 2024

Yup, I already fixed it this way, thanks anyway.

from eww.

gh0stzk avatar gh0stzk commented on June 20, 2024

Thank you, already fix it adding a label to the buttons.

from eww.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.