qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

Right click assign category sub-menu should scale with category names/width

Open nrk666 opened this issue 1 year ago • 2 comments
trafficstars

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

nrk666 avatar Aug 03 '24 15:08 nrk666

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

luzpaz avatar Aug 20 '24 12:08 luzpaz

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 avatar Aug 20 '24 14:08 nrk666

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.

nrk666 avatar Sep 08 '24 15:09 nrk666

@xavier2k6 is there a quick fix for this ?

luzpaz avatar Sep 08 '24 16:09 luzpaz

@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 avatar Sep 08 '24 18:09 xavier2k6

I can also confirm this.

Screenshot 2024-09-08 195959

xavier2k6 avatar Sep 08 '24 19:09 xavier2k6

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

nrk666 avatar Sep 09 '24 13:09 nrk666