mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 03:06:37 +00:00
Stop passing the whole timeline item to the bubble background modifier.
This commit is contained in:
committed by
Stefan Ceriu
parent
b11fbc6cce
commit
40d820d4f4
+1
-1
@@ -21,7 +21,7 @@ struct AudioMediaEventsTimelineView: View {
|
||||
isAudioFile: true)
|
||||
.accessibilityLabel(L10n.commonAudio)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.bubbleBackground(timelineItem: timelineItem,
|
||||
.bubbleBackground(isOutgoing: timelineItem.isOutgoing,
|
||||
insets: .init(top: 8, leading: 12, bottom: 8, trailing: 12),
|
||||
color: .compound.bgSubtleSecondary)
|
||||
}
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ struct FileMediaEventsTimelineView: View {
|
||||
additionalWhitespaces: timelineItem.additionalWhitespaces())
|
||||
.accessibilityLabel(L10n.commonFile)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.bubbleBackground(timelineItem: timelineItem,
|
||||
.bubbleBackground(isOutgoing: timelineItem.isOutgoing,
|
||||
insets: .init(top: 8, leading: 12, bottom: 8, trailing: 12),
|
||||
color: .compound.bgSubtleSecondary)
|
||||
}
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ struct VoiceMessageMediaEventsTimelineView: View {
|
||||
playerState: playerState)
|
||||
.accessibilityLabel(L10n.commonVoiceMessage)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.bubbleBackground(timelineItem: timelineItem,
|
||||
.bubbleBackground(isOutgoing: timelineItem.isOutgoing,
|
||||
insets: .init(top: 8, leading: 12, bottom: 8, trailing: 12),
|
||||
color: .compound.bgSubtleSecondary)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user