Bug 424442

Summary: Allow legend to fill horizontal space in system monitor sensor widget
Product: [Plasma] plasmashell Reporter: sk.griffinix
Component: System Monitor widgetsAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: ahiemstra, plasma-bugs-null, rybak.a.v
Priority: NOR    
Version First Reported In: 5.19.3   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: Plasma 5.22
Sentry Crash Report:
Attachments: widget showing cpu usage of 8 cores
Hidden text on a narrow memory usage widget
Hidden text on a wide memory usage widget

Description sk.griffinix 2020-07-19 22:19:17 UTC
Created attachment 130263 [details]
widget showing cpu usage of 8 cores

SUMMARY
When multiple sensors are added to the widget, the sensors are listed in legend vertically, even when horizontal space is available

STEPS TO REPRODUCE
1. Add system monitor sensor widget to desktop
2. With 'show sensors legend' enabled, add multiple sensors. For eg. all cpu cores' usage
3. expand the widget to appropriate size so all elements are visible

OBSERVED RESULT
The widget takes lot of vertical space to list every sensor since they are only listed vertically

EXPECTED RESULT
Horizontal space should be appropriately utilised.


ADDITIONAL INFORMATION
This may not seem like a problem when a couple of sensors are added. But even with 8 core systems, the wasted space is clearly apparent. For higher end ryzen systems with 32 or 64 threads, it would either not fit in or take entire screen space
Comment 1 Andrei Rybak 2020-08-30 06:31:25 UTC
Created attachment 131278 [details]
Hidden text on a narrow memory usage widget
Comment 2 Andrei Rybak 2020-08-30 06:32:10 UTC
Created attachment 131279 [details]
Hidden text on a wide memory usage widget
Comment 3 Arjen Hiemstra 2021-07-22 10:29:29 UTC
We redid the legend for Plasma 5.22. It now uses a dynamic multi column layout, which should fix this issue.