aboutsummaryrefslogtreecommitdiff
path: root/qml/Message.qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-06-27 11:58:25 +0300
committerlink2xt <link2xt@testrun.org>2021-06-27 11:58:25 +0300
commit76b844bd6461d90f91a42fc02002accb694ec56d (patch)
treed167600cbb70ce3659624e63f25a1758bfdd8f22 /qml/Message.qml
parentd5d8f9a4abd6ee9c2cf2e7b938b6dd8313dc5794 (diff)
downloadkdeltachat-76b844bd6461d90f91a42fc02002accb694ec56d.tar.gz
kdeltachat-76b844bd6461d90f91a42fc02002accb694ec56d.zip
Fit message text on the screen if it is too narrow
Diffstat (limited to 'qml/Message.qml')
-rw-r--r--qml/Message.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/qml/Message.qml b/qml/Message.qml
index 417c086..1c7f7f3 100644
--- a/qml/Message.qml
+++ b/qml/Message.qml
@@ -191,7 +191,7 @@ RowLayout {
// Message
TextEdit {
- Layout.maximumWidth: Kirigami.Units.gridUnit * 30
+ Layout.maximumWidth: Math.min(messageObject.width, Kirigami.Units.gridUnit * 30)
textFormat: Text.PlainText
selectByMouse: true
readOnly: true