From 9f734aa570c9de7fdf90dc51ef189f25609ad5b4 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 24 Nov 2020 12:15:34 +0100 Subject: [PATCH] Optimize size of images --- imports/NeoChat/Component/Timeline/ImageDelegate.qml | 9 --------- imports/NeoChat/Page/RoomPage.qml | 3 +-- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/imports/NeoChat/Component/Timeline/ImageDelegate.qml b/imports/NeoChat/Component/Timeline/ImageDelegate.qml index bfb8382af..710c7d132 100644 --- a/imports/NeoChat/Component/Timeline/ImageDelegate.qml +++ b/imports/NeoChat/Component/Timeline/ImageDelegate.qml @@ -37,15 +37,6 @@ Image { fillMode: Image.PreserveAspectCrop - layer.enabled: true - layer.effect: OpacityMask { - maskSource: Rectangle { - width: img.width - height: img.height - radius: 2 - } - } - Control { anchors.bottom: parent.bottom anchors.bottomMargin: 8 diff --git a/imports/NeoChat/Page/RoomPage.qml b/imports/NeoChat/Page/RoomPage.qml index 0e02ac8b2..da060256f 100644 --- a/imports/NeoChat/Page/RoomPage.qml +++ b/imports/NeoChat/Page/RoomPage.qml @@ -250,8 +250,7 @@ Kirigami.ScrollablePage { innerObject: [ ImageDelegate { Layout.maximumWidth: parent.width - Layout.preferredWidth: Math.min(320, info.w) - Layout.preferredHeight: Math.min(320, info.h) + Layout.minimumWidth: 320 }, ReactionDelegate { Layout.fillWidth: true