From c40dbad28818bf2f23ca850165fae5667ccd5862 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Sat, 28 Sep 2019 22:04:06 -0700 Subject: [PATCH] Fix a rare text wrapping issue for CJK characters. --- imports/Spectral/Component/Timeline/MessageDelegate.qml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/imports/Spectral/Component/Timeline/MessageDelegate.qml b/imports/Spectral/Component/Timeline/MessageDelegate.qml index b96749e67..ba932e8ef 100644 --- a/imports/Spectral/Component/Timeline/MessageDelegate.qml +++ b/imports/Spectral/Component/Timeline/MessageDelegate.qml @@ -158,14 +158,19 @@ ColumnLayout { } } - Label { + TextEdit { Layout.fillWidth: true color: !sentByMe ? MPalette.foreground : "white" text: "" + (replyVisible ? reply.display : "") + font.family: window.font.family + selectByMouse: true + readOnly: true wrapMode: Label.Wrap - textFormat: Label.RichText + selectedTextColor: darkBackground ? "white" : MPalette.accent + selectionColor: darkBackground ? MPalette.accent : "white" + textFormat: Text.RichText } }