From 4c7c8a06a3124486730ec1cdd6c3b825e99e9e4d Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Mon, 20 Jul 2020 17:22:36 -0400 Subject: [PATCH] fix: fix message overflowing because break spaces were stopped by pre --- .../ChatColumn/MessageComponents/ChatText.qml | 68 +++++++++---------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatText.qml b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatText.qml index 850d9d329f..7f6f69d030 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatText.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatText.qml @@ -6,44 +6,44 @@ StyledTextEdit { id: chatText visible: contentType == Constants.messageType || isEmoji textFormat: Text.RichText - text: { - if(contentType === Constants.stickerType) return ""; - let msg = Utils.linkifyAndXSS(message); - if(isEmoji){ - return Emoji.parse(msg, "72x72"); - } else { - return ` - - - - - ${Emoji.parse(msg, "26x26")} - - `; - } - - } horizontalAlignment: Text.AlignLeft wrapMode: Text.Wrap font.pixelSize: 15 readOnly: true selectByMouse: true color: Style.current.textColor + text: { + if(contentType === Constants.stickerType) return ""; + let msg = Utils.linkifyAndXSS(message); + if(isEmoji){ + return Emoji.parse(msg, "72x72"); + } else { + return ``+ + ``+ + ``+ + ``+ + ``+ + `${Emoji.parse(msg, "26x26")}`+ + ``+ + ``; + } + + } }