From 004d10bfeedb5e4278beafbd6b2f288b9b106a26 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 13 May 2020 01:09:40 +0200 Subject: Clip replies by default In the future we should probably add a gradient when clipped... --- resources/qml/delegates/TextMessage.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'resources/qml/delegates/TextMessage.qml') 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: "" + formatted.replace("
", "
")
 	width: parent ? parent.width : undefined
+	height: isReply ? Math.min(chat.height / 8, implicitHeight) : undefined
+	clip: true
 }
-- 
cgit 1.5.1