mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:06:00 +00:00
Simplify how we build bubbles for previewing purposes, make use of the new bubbleBackground modifier.
This commit is contained in:
committed by
Stefan Ceriu
parent
681daf50ea
commit
c97dcc18f2
+1
-3
@@ -21,9 +21,7 @@ struct AudioMediaEventsTimelineView: View {
|
||||
isAudioFile: true)
|
||||
.accessibilityLabel(L10n.commonAudio)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.bubbleBackground(isOutgoing: timelineItem.isOutgoing,
|
||||
insets: .init(top: 8, leading: 12, bottom: 8, trailing: 12),
|
||||
color: .compound.bgSubtleSecondary)
|
||||
.bubbleBackground(isOutgoing: timelineItem.isOutgoing)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-3
@@ -20,9 +20,7 @@ struct FileMediaEventsTimelineView: View {
|
||||
additionalWhitespaces: timelineItem.additionalWhitespaces())
|
||||
.accessibilityLabel(L10n.commonFile)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.bubbleBackground(isOutgoing: timelineItem.isOutgoing,
|
||||
insets: .init(top: 8, leading: 12, bottom: 8, trailing: 12),
|
||||
color: .compound.bgSubtleSecondary)
|
||||
.bubbleBackground(isOutgoing: timelineItem.isOutgoing)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-3
@@ -17,9 +17,7 @@ struct VoiceMessageMediaEventsTimelineView: View {
|
||||
playerState: playerState)
|
||||
.accessibilityLabel(L10n.commonVoiceMessage)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.bubbleBackground(isOutgoing: timelineItem.isOutgoing,
|
||||
insets: .init(top: 8, leading: 12, bottom: 8, trailing: 12),
|
||||
color: .compound.bgSubtleSecondary)
|
||||
.bubbleBackground(isOutgoing: timelineItem.isOutgoing)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user