From 857b1a43112135a14a12b1c12e564f13451579f4 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 7 Aug 2021 21:36:39 +0000 Subject: Restrict image width to message width --- qml/Message.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/qml/Message.qml b/qml/Message.qml index 69f5f62..85cc2ac 100644 --- a/qml/Message.qml +++ b/qml/Message.qml @@ -53,6 +53,7 @@ RowLayout { sourceSize.width: messageObject.message.width sourceSize.height: messageObject.message.height fillMode: Image.PreserveAspectCrop + Layout.preferredWidth: messageObject.width Layout.maximumWidth: Kirigami.Units.gridUnit * 30 Layout.maximumHeight: Kirigami.Units.gridUnit * 20 asynchronous: true -- cgit v1.2.3-70-g09d2