Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.08k stars 678 forks source link

Workspaces enforce a minimum height #1611

Open PeterNerlich opened 2 years ago

PeterNerlich commented 2 years ago

I set the font size of all text, icons and the tray to 12px, but waybar doesn't shrink anymore. I confirmed that removing workspaces from the list of modules collapses to the true minimum height.

I have nothing special in my config:

"sway/workspaces": {
    "disable-scroll": true,
    "format": "{name}"
},

And relevant lines in the style:

* {
    font-size: 12px;
    font-family: monospace;
}

#workspaces button {
    padding: 0 1px;
    color: #f58f29;
}
#workspaces button.focused {
    color: #f5dfbb;
}
#workspaces button:hover {
    box-shadow: inherit;
    text-shadow: inherit;
}
#workspaces button:hover {
    background: #201816;
    border: #201816;
    padding: 0 2px;
}
lgaboury commented 7 months ago

A potential workaround is to add min-height of 0 (zero) to your styling, such as:

* {
    font-size: 12px;
    font-family: monospace;
        min-height: 0;
}