Bug 499779

Summary: QMenus have unnecessarily large padding on the right side to accommodate sub-menu arrows, even when the menu has no sub-menus
Product: [Plasma] Breeze Reporter: Andres Betts <anditosan1000>
Component: QStyleAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: kde, nate, noahadvs, uhhadd
Priority: NOR    
Version First Reported In: 6.3.0   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: menulength

Description Andres Betts 2025-02-10 21:01:51 UTC
Created attachment 178126 [details]
menulength

In our current version of Plasma we have menus that seem to have additional reserved space for menu items that are not there. Particularly in combinations such as this:

| Item Name | --------- |Shortcut | --- > |

(Dashes are spaces)

In menus where there is no presence of sub menus, the space is reserved nonetheless, making the menu unnecessarily wider. Like this:

| Item Name | --------- |Shortcut --- |

I have attached an image showing the visual discrepancy. Ideally, the system should be able to adapt to the length of visible items. This issue seems to be generalized on all menus.
Comment 1 Nate Graham 2025-02-19 16:26:30 UTC
Can confirm. It's leaving space for showing arrows to indicate sub-menus, even when the menu has no sub-menus.