mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 13:15:20 +01:00
[GH-ISSUE #633] [Launcher] Items overflow offscreen #5833
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#5833
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 @humaidq-tii on GitHub (Jun 5, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/633
Describe the bug
When using Launcher module with
show_namesenabled, applications with long title names let ironbar go offscreen.To Reproduce
Steps to reproduce the behavior:
show_names.Expected behavior
Title name should be truncated at least, and if still overflows, module should be scrollable without resizing entirety of ironbar.
System information:
Configuration
anchor_to_edgesis set totrue, and margins are added (200 on left & 200 right).Some basic styling is also added.
@JakeStanger commented on GitHub (Jun 28, 2024):
Thanks for reporting. I've got some fixes & improvements around the truncation system in the works for this, including more sensible defaults.
I don't think making the module scrollable is easily feasible or a nice UX, but hopefully it'll never get to the point where that's necessary again.
@crimsonduelist commented on GitHub (Jun 29, 2024):
What about a X number of items specified and and then buttons to go through sections. Like windows does. Or would that count as scrollable also?
@ToxicMushroom commented on GitHub (Nov 9, 2024):
Can also go onto the next screen and obstruct windows ect, not sure how other bars handle this or what the best solution is.
@huyufeifei commented on GitHub (Jan 23, 2025):
hello, thanks for your great work!
I encountered this problem too while using a custom label module with dynamic length. Is it possible to add
truncaterelated option for this module?@JakeStanger commented on GitHub (Feb 21, 2025):
Hello, finally got to finishing this!
It's a little clunky, but I've gone this route. There is a new configurable
page_sizeoption (defaults to 1000 so it won't show). Once the item count exceeds the page size, forward/back arrows will show which step through "pages" of the items.I did have a look at proper scrolling but it seems like it'd be a right faff and bit of a hack to get GTK to even think about doing that.
@huyufeifei It only took a couple of mins so I've added truncate options to the
labelmodule and custom module while I was at it.Should all be landing soon.
I wasn't able to replicate this one so I'm assuming it's compositor-specific. Not sure what the correct behaviour is here but I would assume it's its responsibility to cap it. I may be able to force GTK if it's still an issue.