From fcad46f571e1a02d6abeb5004866ae929f64f63f Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 27 Jun 2021 11:57:01 +0300 Subject: Restrict message width and avoid gaps around images --- qml/Message.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qml/Message.qml') diff --git a/qml/Message.qml b/qml/Message.qml index 21b3959..feed6c8 100644 --- a/qml/Message.qml +++ b/qml/Message.qml @@ -54,8 +54,8 @@ RowLayout { sourceSize.width: messageObject.message.width sourceSize.height: messageObject.message.height fillMode: Image.PreserveAspectCrop - Layout.maximumWidth: messageObject.width - Layout.maximumHeight: Kirigami.Units.gridUnit * 10 + Layout.maximumWidth: Kirigami.Units.gridUnit * 30 + Layout.maximumHeight: Kirigami.Units.gridUnit * 20 asynchronous: true } Label { @@ -179,7 +179,7 @@ RowLayout { } TextEdit { id: quoteTextEdit - Layout.maximumWidth: messageObject.width > 30 ? messageObject.width - 30 : messageObject.width + Layout.maximumWidth: Kirigami.Units.gridUnit * 30 text: messageObject.message.quotedText ? messageObject.message.quotedText : "" textFormat: Text.PlainText selectByMouse: true @@ -192,7 +192,7 @@ RowLayout { // Message TextEdit { - Layout.maximumWidth: messageObject.width > 30 ? messageObject.width - 30 : messageObject.width + Layout.maximumWidth: Kirigami.Units.gridUnit * 30 textFormat: Text.PlainText selectByMouse: true readOnly: true -- cgit v1.2.3-70-g09d2