Bug 488142 - Metabug: Handling not enough space for widgets
Summary: Metabug: Handling not enough space for widgets
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 6.0.5
Platform: NixOS Linux
: NOR task
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on: 447603 457536
Blocks:
  Show dependency treegraph
 
Reported: 2024-06-07 06:24 UTC by m1vri31c
Modified: 2024-06-07 16:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m1vri31c 2024-06-07 06:24:21 UTC
SUMMARY
The space available in a panel can change for a number of reasons, from rotating the display, changing the resolution or scaling, or other widgets changing in size. There currently does not seem to be many options for dealing with this, with widgets being randomly hidden or breaking if they run out of space.

The easiest fix to this would be to allow you to set which widgets or spacers you'd like to hide in the event of running out of space (I wonder if it's possible to do this for the Global Menubar since for it to work effectively it should appear on the relevant windows if it is hidden – but if it is a problem the user can choose to have it be hidden last). Beyond this it would be good to set spacing settings in widget configurations to be large (or whatever maximum size you chose) but shrink when there is not enough space. Further, widgets could change layout entirely based on size available, or desktops could even be set up per resolution rather than per display (e.g. you could make a portrait orientation panel layout and a landscape orientation one).

STEPS TO REPRODUCE
1. Populate a panel with widgets
2. Change the display resolution or scaling to reduce the amount of room available

OBSERVED RESULT
Will be different per widget. Some break, some disappear altogether

EXPECTED RESULT
Shrink the size of widgets as much as is usable, and hide least important widgets first. Or allow the desktop layout to change entirely when the screen shape/size changes.

SOFTWARE/OS VERSIONS
NixOS 24.11 (unstable channel)
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0 
Qt Version: 6.7.1
Comment 1 Nate Graham 2024-06-07 16:05:40 UTC
Perhaps we could move widgets into an overflow menu, and widgets could register themselves as important and try to avoid getting overflow-menu'd if possible.