From 1da3f2e1da67923adae2decb5a0891056d23a256 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 5 Jun 2021 01:22:59 +0200 Subject: [PATCH] Add ugly borders to tables --- resources/qml/delegates/TextMessage.qml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml index f65eda79..cd46f8ca 100644 --- a/resources/qml/delegates/TextMessage.qml +++ b/resources/qml/delegates/TextMessage.qml @@ -9,7 +9,24 @@ MatrixText { property string formatted: model.data.formattedBody property string copyText: selectedText ? getText(selectionStart, selectionEnd) : model.data.body - text: "" + formatted.replace("
", "
").replace("", "").replace("", "").replace("", "").replace("", "")
+    // table border-collapse doesn't seem to work
+    text: "
+    
+    " + formatted.replace("
", "
").replace("", "").replace("", "").replace("", "").replace("", "")
     width: parent ? parent.width : undefined
     height: isReply ? Math.round(Math.min(timelineView.height / 8, implicitHeight)) : undefined
     clip: isReply