From ccbfe1f74a558dd7c26f04c53bbe63c05d514633 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 14 Mar 2021 00:38:29 +0300 Subject: Use PreserveAspectCrop instead of PreserveAspectFit for images This seems to be the easiest way to avoid space above and below the image. --- qml/Message.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/Message.qml b/qml/Message.qml index 9134a72..6628810 100644 --- a/qml/Message.qml +++ b/qml/Message.qml @@ -34,7 +34,7 @@ RowLayout { source: "file:" + messageObject.message.file sourceSize.width: messageObject.message.width sourceSize.height: messageObject.message.height - fillMode: Image.PreserveAspectFit + fillMode: Image.PreserveAspectCrop Layout.maximumWidth: messageObject.width } Label { -- cgit v1.2.3-70-g09d2