aboutsummaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-06-27 11:57:01 +0300
committerlink2xt <link2xt@testrun.org>2021-06-27 11:57:01 +0300
commitfcad46f571e1a02d6abeb5004866ae929f64f63f (patch)
tree6bf3ffe7feb22bd4b1ccd29c54b2561c27dc0a04 /qml
parent25da4228768e260ea9f67d5aa10558e7cf9cf7ee (diff)
downloadkdeltachat-fcad46f571e1a02d6abeb5004866ae929f64f63f.tar.gz
kdeltachat-fcad46f571e1a02d6abeb5004866ae929f64f63f.zip
Restrict message width and avoid gaps around images
Diffstat (limited to 'qml')
-rw-r--r--qml/Message.qml8
1 files changed, 4 insertions, 4 deletions
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