Bug 476024

Summary: Long text in the Permissions Section is not reformatted to fit the window
Product: [Applications] Discover Reporter: guimarcalsilva
Component: discoverAssignee: ratijas <me>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, nate
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Long text in the permissions section doesn't get reformatted to fit

Description guimarcalsilva 2023-10-23 22:38:35 UTC
Created attachment 162520 [details]
Long text in the permissions section doesn't get reformatted to fit

SUMMARY
The text in the Permission session goes beyond the window limits and gets under the scrollbar. On Plasma 5 the text reformats itself to fit. This is not the case on Plasma 6. Please see the screenshot.

STEPS TO REPRODUCE
1. Open a page for a Flatpak application
2. Scroll down
3. Make the window smaller

OBSERVED RESULT
Long text does not get reformatted to fit the limited space. It continues and is visible behind scrollbar.

EXPECTED RESULT
Text should get reformatted automatically the way it happens on Plasma 5.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.6.0

ADDITIONAL INFORMATION
1x scale
Comment 1 Nate Graham 2023-10-24 17:51:13 UTC
Will be fixed with https://invent.kde.org/plasma/discover/-/merge_requests/661.
Comment 2 ratijas 2023-11-21 01:39:04 UTC
Git commit 2b9afc82f0d52e6992c5b3c01e4e8dc642830d7a by ivan tkachenko.
Committed on 21/11/2023 at 02:38.
Pushed by ratijas into branch 'master'.

Flatpak: Fix regression of text not wrapping in permission view

Requires Kirigami patch that adds wrapMode property to delegates.

M  +12   -2    libdiscover/backends/FlatpakBackend/qml/PermissionsList.qml

https://invent.kde.org/plasma/discover/-/commit/2b9afc82f0d52e6992c5b3c01e4e8dc642830d7a