summary refs log tree commit diff
path: root/resources/qml/delegates/TextMessage.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-05-13 01:09:40 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-05-13 01:09:45 +0200
commit004d10bfeedb5e4278beafbd6b2f288b9b106a26 (patch)
treee4f17745205bf5d27b2497fa6c69e6d0d2c46e3a /resources/qml/delegates/TextMessage.qml
parentTranslation updates (diff)
downloadnheko-004d10bfeedb5e4278beafbd6b2f288b9b106a26.tar.xz
Clip replies by default
In the future we should probably add a gradient when clipped...
Diffstat (limited to 'resources/qml/delegates/TextMessage.qml')
-rw-r--r--resources/qml/delegates/TextMessage.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml

index 7e4b1f29..bef4f76d 100644 --- a/resources/qml/delegates/TextMessage.qml +++ b/resources/qml/delegates/TextMessage.qml
@@ -4,4 +4,6 @@ MatrixText { property string formatted: model.data.formattedBody text: "<style type=\"text/css\">a { color:"+colors.link+";}</style>" + formatted.replace("<pre>", "<pre style='white-space: pre-wrap'>") width: parent ? parent.width : undefined + height: isReply ? Math.min(chat.height / 8, implicitHeight) : undefined + clip: true }