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:
Stefan Ceriu
2024-12-12 17:48:41 +02:00
committed by GitHub
parent 88b5426e97
commit 256ae4d2cc
31 changed files with 398 additions and 91 deletions
@@ -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)