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 string eventId
property alias reactions: repeater.model property alias reactions: repeater.model
anchors.left: parent.left
anchors.right: parent.right
spacing: 4 spacing: 4
Repeater { Repeater {

View file

@ -247,8 +247,11 @@ Item {
anchors { anchors {
top: row.bottom top: row.bottom
topMargin: -2 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 id: reactionRow