Bug 439087 - Install buttons overflows with very long text, especially in widescreen view
Summary: Install buttons overflows with very long text, especially in widescreen view
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.22.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-23 18:46 UTC by kskot
Modified: 2021-08-06 15:30 UTC (History)
2 users (show)

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


Attachments
button of first item in list view overflows (218.22 KB, image/png)
2021-06-23 18:46 UTC, kskot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kskot 2021-06-23 18:46:51 UTC
Created attachment 139624 [details]
button of first item in list view overflows

SUMMARY

The action buttons in discovers list view overflow 

STEPS TO REPRODUCE
1. open discover
2. search for something which is directly installable from the package manger (non-snap, non-flatpak) e.g. "v4l", and thus has a long button text
3. maximize the window
4. click on one of the items in the list view so the discover menu, the list view and the items detail view are visible
5. notice that the action button with the text "Install from KDE neon User Edition 5.22" in the list view overflows to the right.

The attached image shows an example.

OBSERVED RESULT

action button is partially hidden 


EXPECTED RESULT

action is fully visible


Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.3
Kernel Version: 5.8.0-59-generic (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-07-29 15:41:33 UTC
Can confirm. I thought we already had a bug report for this but I can't find it...
Comment 2 Bug Janitor Service 2021-08-05 16:59:21 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/151
Comment 3 Nate Graham 2021-08-06 15:30:06 UTC
Git commit 8689559186feee6f1a345e00a7edf99ab4eca3b6 by Nate Graham.
Committed on 06/08/2021 at 15:29.
Pushed by ngraham into branch 'master'.

Limit very long backend names in InstallApplicationButton

Otherwise the button may be so long that it elides the app text or even
overflows outside of the layout!
Related: bug 437227
FIXED-IN: 5.23

M  +8    -1    discover/qml/InstallApplicationButton.qml

https://invent.kde.org/plasma/discover/commit/8689559186feee6f1a345e00a7edf99ab4eca3b6