fix: fix long texts to wrap correctly in chat bubble
This commit is contained in:
parent
21afaf4ea4
commit
bae8e44f37
|
@ -236,7 +236,7 @@ Item {
|
||||||
anchors.rightMargin: message.length > 52 ? parent.chatHorizontalPadding : 0
|
anchors.rightMargin: message.length > 52 ? parent.chatHorizontalPadding : 0
|
||||||
horizontalAlignment: !isCurrentUser ? Text.AlignLeft : Text.AlignRight
|
horizontalAlignment: !isCurrentUser ? Text.AlignLeft : Text.AlignRight
|
||||||
font.family: "Inter"
|
font.family: "Inter"
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WrapAnywhere
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: chatBox.chatVerticalPadding
|
anchors.topMargin: chatBox.chatVerticalPadding
|
||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
|
|
Loading…
Reference in New Issue