Bug 415677

Summary: OverlaySheet constrains width of content to be much too small
Product: [Applications] Discover Reporter: Nate Graham <nate>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Sheet's contents are squeezed into a narrow strip with huge side margins

Description Nate Graham 2019-12-29 15:03:30 UTC
Created attachment 124772 [details]
Sheet's contents are squeezed into a narrow strip with huge side margins

I am working on the review sheet in Discover (https://phabricator.kde.org/D25889), which uses a Kirigami OverlaySheet to display a list of an app's user reviews.

The internal layouting of the OverlaySheet sizes the content to be narrow and centered within the sheet, with enormous side margins. This leaves little horizontal space for the content itself, and IMO just doesn't look very good. See attached screen recording.

The bug seems to be caused by or near https://cgit.kde.org/kirigami.git/tree/src/controls/templates/OverlaySheet.qml#n211, but I was unable to pinpoint exactly where or formulate a patch, sorry.