From c18c6b080a0e09b8930a5ac5e8a166c3c688041f Mon Sep 17 00:00:00 2001 From: Simon Plakolb Date: Wed, 19 Oct 2022 13:47:04 +0200 Subject: [PATCH] Set default minimal width of buttons to zero Even if all margins, padding and borders of buttons are removed the label inside the buttons may still be padded if they are too short. Setting the minimal width of buttons to zero fixes this issue. --- resources/style.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/style.css b/resources/style.css index 40d870af..ae6e496d 100644 --- a/resources/style.css +++ b/resources/style.css @@ -40,6 +40,8 @@ button { /* Avoid rounded borders under each button name */ border: none; border-radius: 0; + /* https://github.com/Alexays/Waybar/issues/1731 */ + min-width: 0; } /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */