diff --git a/discover/qml/ApplicationPage.qml b/discover/qml/ApplicationPage.qml index fb2c6537726fbb5a368e45f76e608674542bc399..50e9c8f9594cd3c843bfdbf3565c4be200099439 100644 --- a/discover/qml/ApplicationPage.qml +++ b/discover/qml/ApplicationPage.qml @@ -39,6 +39,7 @@ DiscoverPage { ReviewsPage { id: reviewsSheet + parentWidth: appInfo.width model: ReviewsModel { id: reviewsModel resource: appInfo.application diff --git a/discover/qml/ReviewsPage.qml b/discover/qml/ReviewsPage.qml index 1fcdea3a12f7fafcda45d61e80f389562746105a..cd9385db01d9ca7b052c3f668aaf9a6235a5cab8 100644 --- a/discover/qml/ReviewsPage.qml +++ b/discover/qml/ReviewsPage.qml @@ -29,6 +29,7 @@ Kirigami.OverlaySheet { property alias model: reviewsView.model readonly property QtObject reviewsBackend: resource.backend.reviewsBackend readonly property var resource: model.resource + property real parentWidth: 0 readonly property var rd: ReviewDialog { id: reviewDialog @@ -44,6 +45,7 @@ Kirigami.OverlaySheet { ListView { id: reviewsView + implicitWidth: page.parentWidth * (applicationWindow().wideScreen ? 3/4 : 1) clip: true spacing: Kirigami.Units.smallSpacing @@ -59,6 +61,7 @@ Kirigami.OverlaySheet { anchors { left: parent.left right: parent.right + margins: Kirigami.Units.gridUnit } onMarkUseful: page.model.markUseful(index, useful) }