qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
26.92k stars 3.88k forks source link

Problem: Right click assign category sub-menu should scale with category names/width or else it is truncated #21142

Open nrk666 opened 1 month ago

nrk666 commented 1 month ago

Suggestion

QBit version: 4.6.5, Web Interface from qbittorrent-nox, linux Browser: Firefox (recent) Unable to find similar feature request or issue but I'm not an issue search master either

Steps to reproduce:

  1. Have a lot of sub categories, possibly sub of a sub with long names.
  2. Right click torrent to assign category.
  3. Selecting "Category" from menu drop down opens a side menu expansion of category names with what looks to be a fixed width sub-menu.
  4. Subcategory names can get cut off with a fixed width sub-menu if you use long category/sub names.

If this drop down category side menu could scale width based on categories/subcategories text names that would be very helpful. Love subcategories btw.

Use case

Assigning category to torrent by right clicking would be able to see full category/subcategory names for assignment with a scaling menu width.

Extra info/examples/attachments

No response

luzpaz commented 3 weeks ago

Can you add screenshots to show the issue and perhaps what you propose it should look like ?

nrk666 commented 3 weeks ago

Sure.

QbittorrentCategoryWidth

The category assignment drop down side panel needs to scale right to accommodate long category/subcategory chains as needed. If it doesn't need to scale, don't scale it, but if it does, then expand right so you can see all the names.

nrk666 commented 4 days ago

This says "Waiting Info" - what other info is needed? What it should look like? The menu just needs to expand further to the right so that the entire category name is shown.

luzpaz commented 4 days ago

@xavier2k6 is there a quick fix for this ?

xavier2k6 commented 3 days ago

@xavier2k6 is there a quick fix for this ?

I don't know about a quick fix, but something like QMenu::addMenu as suggested in https://github.com/qbittorrent/qBittorrent/issues/19899#issuecomment-1801757988 may be of benefit. (long term)

Tags may also benefit from something similar

xavier2k6 commented 3 days ago

I can also confirm this.

Screenshot 2024-09-08 195959

nrk666 commented 3 days ago

I have no preference how you solve it, do whatever you think is best. Thank you so much for looking into it.