mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 14:15:22 +01:00
[GH-ISSUE #204] Height option for custom modules/widgets #1498
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#1498
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @preetamsad on GitHub (Jun 26, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/204
Currently, adding a custom module increases the bars the total height which is annoying. I use a laptop with a small screen so the slight increase in height matters a lot. I want to add a custom power menu but the height increases when i place a button widget on the bar. Is there a way to avoid that or is there a way I can decrease the button's height so that total height of the bar does not increase??
Great project BTW !! 🤗
@JakeStanger commented on GitHub (Jun 26, 2023):
Hey, GTK will size a module automatically, and will push it out to ensure its child content fits - you can set a min size, but not a max.
Most likely what's happening is you have some padding/margin on the module, or the font size is too large, and that's pushing the module out.
If you want me to take a look I can - just share your config/style.
@preetamsad commented on GitHub (Jun 26, 2023):
Thanks for replying early. Yea padding/margin seemed to be the issue. I added
* {padding: 0px; margin: 0px}to my style.css and now the button does not push out the bar's height.Thanks for helping out, closing the issue now. 😄
@azertyfun commented on GitHub (Sep 11, 2025):
Just FYI for anyone who stumbles upon this issue, I have narrowed down the CSS a little further: