Allow TextDelegate to wrap anywhere if required

Prevents lines from going out of the message bubble
This commit is contained in:
Tobias Fella
2021-09-20 23:31:36 +02:00
parent 50040230f5
commit cb2ea5f4e3
2 changed files with 1 additions and 2 deletions

View File

@@ -79,7 +79,6 @@ MouseArea {
id: replyText
textMessage: reply.display
textFormat: Text.RichText
wrapMode: Text.WordWrap
width: Math.min(implicitWidth, bubbleMaxWidth - Kirigami.Units.largeSpacing * 3)
x: Kirigami.Units.smallSpacing * 3 + avatatReply.width
}

View File

@@ -50,7 +50,7 @@ a{
font.pointSize: model.reply === undefined && isEmoji.test(model.display) ? Kirigami.Theme.defaultFont.pointSize * 4 : Kirigami.Theme.defaultFont.pointSize
selectByMouse: !Kirigami.Settings.isMobile
readOnly: true
wrapMode: Text.WordWrap
wrapMode: Text.Wrap
textFormat: Text.RichText
Layout.fillWidth: true