Bug 468142 - Overflowing toolbar should place extra items on the right, not the left
Summary: Overflowing toolbar should place extra items on the right, not the left
Status: CONFIRMED
Alias: None
Product: frameworks-kxmlgui
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.104.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2023-04-04 10:41 UTC by Martino Fontana
Modified: 2023-08-22 11:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
How the tool manu is now, and mockup on how it should be fixed. (22.74 KB, application/zip)
2023-04-04 10:41 UTC, Martino Fontana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martino Fontana 2023-04-04 10:41:21 UTC
Created attachment 157845 [details]
How the tool manu is now, and mockup on how it should be fixed.

SUMMARY
When Okular's window width is too small, the tools that can't fit in the tools menu are replaced by a button that expands the menu vertically to allow you to use them.
This button is on the right side of the tools menu. However, the tools shown after clicking on it are aligned to the left. This makes it cumbersome to use these tools.
It doesn't help that if the mouse cursor is moved outside the tools menu, the menu will automatically collapse: basically, the user has to click a button on the right side of the UI, and move the cursor to the left with precision. This is not good UX.

It's particularly noticeable with the Zoom tool: the window width might make "Zoom Out" visible and "Zoom In" hidden. When expanding the tools menu, you get the "Zoom Out" button on the right, and the "Zoom In" button on the left: they are on the opposite sides of the UI.

STEPS TO REPRODUCE
1. Open Okular
2. Reduce the window width so that "Zoom In" is hidden
3. Expand the tools menu

OBSERVED RESULT
"Zoom Out" and "Zoom In" are on the opposite sides of the UI

EXPECTED RESULT
"Zoom In" should be aligned to the right, so that these buttons are close.
(Same with every other button hidden by the short window width)

SOFTWARE/OS VERSIONS
Linux: NixOS 23.05
(available in About System)
Operating System: NixOS 23.05
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Graphics Platform: Wayland
Comment 1 Martino Fontana 2023-08-22 11:20:40 UTC
Small note: the zoom buttons were moved, so the example isn't applicable to them anymore.
Still, the overall issue remains.