Skip to content
Snippets Groups Projects
Commit 838591cb authored by Thomas Ballasi's avatar Thomas Ballasi Committed by Sébastien Blin
Browse files

TextMessageDelegate: fix alignment for outgoing emojis

GitLab: #861
Change-Id: I32c643e56a730e4d3d5a6688308a50d18bf95cb6
parent 61b2bfde
No related branches found
No related tags found
No related merge requests found
...@@ -64,6 +64,8 @@ SBSMessageBase { ...@@ -64,6 +64,8 @@ SBSMessageBase {
Math.max(extraContent.width, Math.max(extraContent.width,
Math.min(implicitWidth - avatarBlockWidth, Math.min(implicitWidth - avatarBlockWidth,
extraContent.minSize) - senderMargin ) extraContent.minSize) - senderMargin )
else if (isEmojiOnly)
Math.min(implicitWidth, innerContent.width - senderMargin - (innerContent.width - senderMargin) % (JamiTheme.chatviewEmojiSize + 2))
else else
Math.min(implicitWidth, innerContent.width - senderMargin) Math.min(implicitWidth, innerContent.width - senderMargin)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment