JakeStanger / ironbar

Customisable Wayland gtk bar written in Rust.
https://crates.io/crates/ironbar
MIT License
482 stars 36 forks source link

[Launcher] Items overflow offscreen #633

Open humaidq-tii opened 4 weeks ago

humaidq-tii commented 4 weeks ago

Describe the bug When using Launcher module with show_names enabled, applications with long title names let ironbar go offscreen.

To Reproduce Steps to reproduce the behavior:

  1. Enable launcher module with show_names.
  2. Open some applications, maybe a browser window with a webpage that includes a long title.
  3. Your ironbar will start going off-screen

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_edges is set to true, and margins are added (200 on left & 200 right). Some basic styling is also added.

JakeStanger commented 4 days ago

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 3 days ago

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.

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?