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

Open
opened 2026-02-22 02:39:41 -05:00 by deekerman · 7 comments
Owner

Originally created by @nrk666 on GitHub (Aug 3, 2024).

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

Originally created by @nrk666 on GitHub (Aug 3, 2024). ### 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_
Author
Owner

@luzpaz commented on GitHub (Aug 20, 2024):

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

@luzpaz commented on GitHub (Aug 20, 2024): Can you add screenshots to show the issue and perhaps what you propose it should look like ?
Author
Owner

@nrk666 commented on GitHub (Aug 20, 2024):

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 on GitHub (Aug 20, 2024): Sure. ![QbittorrentCategoryWidth](https://github.com/user-attachments/assets/22d0a780-d686-41df-9e73-c8a871de08dd) 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.
Author
Owner

@nrk666 commented on GitHub (Sep 8, 2024):

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 commented on GitHub (Sep 8, 2024): 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.
Author
Owner

@luzpaz commented on GitHub (Sep 8, 2024):

@xavier2k6 is there a quick fix for this ?

@luzpaz commented on GitHub (Sep 8, 2024): @xavier2k6 is there a quick fix for this ?
Author
Owner

@xavier2k6 commented on GitHub (Sep 8, 2024):

@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 on GitHub (Sep 8, 2024): > @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
Author
Owner

@xavier2k6 commented on GitHub (Sep 8, 2024):

I can also confirm this.

Screenshot 2024-09-08 195959

@xavier2k6 commented on GitHub (Sep 8, 2024): I can also confirm this. ![Screenshot 2024-09-08 195959](https://github.com/user-attachments/assets/1d3cbea1-8c6a-4456-b5b4-ffda7263f481)
Author
Owner

@nrk666 commented on GitHub (Sep 9, 2024):

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

@nrk666 commented on GitHub (Sep 9, 2024): I have no preference how you solve it, do whatever you think is best. Thank you so much for looking into it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#15955
No description provided.