Improve image delegate sizing
This commit is contained in:
@@ -35,7 +35,7 @@ Image {
|
|||||||
sourceSize.width: info.w
|
sourceSize.width: info.w
|
||||||
sourceSize.height: info.h
|
sourceSize.height: info.h
|
||||||
|
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
||||||
Control {
|
Control {
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
|
|||||||
@@ -338,6 +338,7 @@ Kirigami.ScrollablePage {
|
|||||||
ImageDelegate {
|
ImageDelegate {
|
||||||
Layout.maximumWidth: parent.width
|
Layout.maximumWidth: parent.width
|
||||||
Layout.minimumWidth: 320
|
Layout.minimumWidth: 320
|
||||||
|
Layout.preferredHeight: info.h / info.w * width
|
||||||
},
|
},
|
||||||
ReactionDelegate {
|
ReactionDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|||||||
Reference in New Issue
Block a user