fix(Chat): ensure transaction bubbles are render on the correct side

Fixes #1198
This commit is contained in:
Pascal Precht 2020-10-20 12:11:45 +02:00 committed by Iuri Matias
parent d76667f345
commit ebda8b19a9
1 changed files with 7 additions and 1 deletions

View File

@ -95,7 +95,8 @@ Item {
id: root
anchors.left: parent.left
anchors.leftMargin: appSettings.compactMode ? Style.current.padding : 48
anchors.leftMargin: isCurrentUser ? 0 :
appSettings.compactMode ? Style.current.padding : 48;
width: rectangleBubble.width
height: rectangleBubble.height
@ -109,6 +110,11 @@ Item {
border.color: Style.current.border
border.width: 1
anchors.right: isCurrentUser ? parent.right : undefined
anchors.rightMargin: Style.current.padding
anchors.left: !isCurrentUser ? parent.left : undefined
anchors.leftMargin: Style.current.padding
StyledText {
id: title
color: Style.current.secondaryText