Optimize size of images
This commit is contained in:
@@ -37,15 +37,6 @@ Image {
|
|||||||
|
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
|
||||||
layer.enabled: true
|
|
||||||
layer.effect: OpacityMask {
|
|
||||||
maskSource: Rectangle {
|
|
||||||
width: img.width
|
|
||||||
height: img.height
|
|
||||||
radius: 2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Control {
|
Control {
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.bottomMargin: 8
|
anchors.bottomMargin: 8
|
||||||
|
|||||||
@@ -250,8 +250,7 @@ Kirigami.ScrollablePage {
|
|||||||
innerObject: [
|
innerObject: [
|
||||||
ImageDelegate {
|
ImageDelegate {
|
||||||
Layout.maximumWidth: parent.width
|
Layout.maximumWidth: parent.width
|
||||||
Layout.preferredWidth: Math.min(320, info.w)
|
Layout.minimumWidth: 320
|
||||||
Layout.preferredHeight: Math.min(320, info.h)
|
|
||||||
},
|
},
|
||||||
ReactionDelegate {
|
ReactionDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|||||||
Reference in New Issue
Block a user