mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Custom media gallery views for files and voice messages (#3610)
* Extract the timeline item background from the BubbledStyler. * Use different views for files and voices messages, reuse the timeline content but only keep the bubble background instead of the whole TimelineStyler. * Add back max voice message width and add missing accessibility label
This commit is contained in:
@@ -53,6 +53,12 @@ extension PreviewTests {
|
||||
}
|
||||
}
|
||||
|
||||
func test_audioMediaEventsTimelineView() {
|
||||
for preview in AudioMediaEventsTimelineView_Previews._allPreviews {
|
||||
assertSnapshots(matching: preview)
|
||||
}
|
||||
}
|
||||
|
||||
func test_audioRoomTimelineView() {
|
||||
for preview in AudioRoomTimelineView_Previews._allPreviews {
|
||||
assertSnapshots(matching: preview)
|
||||
@@ -179,6 +185,12 @@ extension PreviewTests {
|
||||
}
|
||||
}
|
||||
|
||||
func test_fileMediaEventsTimelineView() {
|
||||
for preview in FileMediaEventsTimelineView_Previews._allPreviews {
|
||||
assertSnapshots(matching: preview)
|
||||
}
|
||||
}
|
||||
|
||||
func test_fileRoomTimelineView() {
|
||||
for preview in FileRoomTimelineView_Previews._allPreviews {
|
||||
assertSnapshots(matching: preview)
|
||||
@@ -1031,6 +1043,12 @@ extension PreviewTests {
|
||||
}
|
||||
}
|
||||
|
||||
func test_voiceMessageMediaEventsTimelineView() {
|
||||
for preview in VoiceMessageMediaEventsTimelineView_Previews._allPreviews {
|
||||
assertSnapshots(matching: preview)
|
||||
}
|
||||
}
|
||||
|
||||
func test_voiceMessagePreviewComposer() {
|
||||
for preview in VoiceMessagePreviewComposer_Previews._allPreviews {
|
||||
assertSnapshots(matching: preview)
|
||||
|
||||
Reference in New Issue
Block a user