mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Match reaction alignment to message alignment. (#344)
* Match reaction alignment to message alignment. * Add extra padding for clearer bubble alignment.
This commit is contained in:
@@ -43,11 +43,11 @@ struct TimelineItemBubbledStylerView<Content: View>: View {
|
||||
}
|
||||
}
|
||||
.padding(.trailing, 16)
|
||||
.padding(.leading, 16)
|
||||
.padding(.leading, 56)
|
||||
} else {
|
||||
styledContentWithReactions
|
||||
.padding(.leading, 24)
|
||||
.padding(.trailing, 24)
|
||||
.padding(.trailing, 56)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -82,7 +82,7 @@ struct TimelineItemBubbledStylerView<Content: View>: View {
|
||||
|
||||
if !timelineItem.properties.reactions.isEmpty {
|
||||
TimelineReactionsView(reactions: timelineItem.properties.reactions,
|
||||
alignment: .leading) { key in
|
||||
alignment: alignment) { key in
|
||||
context.send(viewAction: .sendReaction(key: key, eventID: timelineItem.id))
|
||||
}
|
||||
.padding(.horizontal, 12)
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Reactions: Match alignment with the message to fix random floating reactions.
|
||||
Reference in New Issue
Block a user