right-align reactions of right-aligned bubbles

This commit is contained in:
Malte E 2022-03-10 21:47:07 +01:00
parent 1a7409876e
commit 8fa912ed85
2 changed files with 4 additions and 3 deletions

View File

@ -19,8 +19,6 @@ Flow {
property string eventId
property alias reactions: repeater.model
anchors.left: parent.left
anchors.right: parent.right
spacing: 4
Repeater {

View File

@ -247,8 +247,11 @@ Item {
anchors {
top: row.bottom
topMargin: -2
left: row.left
left: row.bubbleOnRight? undefined : row.left
right: row.bubbleOnRight? row.right : undefined
}
width: row.maxWidth
layoutDirection: row.bubbleOnRight? Qt.RightToLeft : Qt.LeftToRight
id: reactionRow