Bug 439087

Summary: Install buttons overflows with very long text, especially in widescreen view
Product: [Applications] Discover Reporter: kskot <288pat0tem>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, nate
Priority: NOR    
Version First Reported In: 5.22.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.23
Sentry Crash Report:
Attachments: button of first item in list view overflows

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