Improve image delegate sizing

This commit is contained in:
Carl Schwan
2020-12-03 13:42:21 +01:00
parent eba2b18ba9
commit bc4cde2dc7
2 changed files with 2 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ Image {
sourceSize.width: info.w
sourceSize.height: info.h
fillMode: Image.PreserveAspectCrop
fillMode: Image.PreserveAspectFit
Control {
anchors.bottom: parent.bottom

View File

@@ -338,6 +338,7 @@ Kirigami.ScrollablePage {
ImageDelegate {
Layout.maximumWidth: parent.width
Layout.minimumWidth: 320
Layout.preferredHeight: info.h / info.w * width
},
ReactionDelegate {
Layout.fillWidth: true