diff options
author | link2xt <link2xt@testrun.org> | 2021-06-27 11:57:01 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-06-27 11:57:01 +0300 |
commit | fcad46f571e1a02d6abeb5004866ae929f64f63f (patch) | |
tree | 6bf3ffe7feb22bd4b1ccd29c54b2561c27dc0a04 | |
parent | 25da4228768e260ea9f67d5aa10558e7cf9cf7ee (diff) | |
download | kdeltachat-fcad46f571e1a02d6abeb5004866ae929f64f63f.tar.gz kdeltachat-fcad46f571e1a02d6abeb5004866ae929f64f63f.zip |
Restrict message width and avoid gaps around images
-rw-r--r-- | qml/Message.qml | 8 |
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 |