mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Improved File and Audio timeline layout (#2176)
This commit is contained in:
parent
aacb24bcf8
commit
36224a3daa
@ -22,15 +22,15 @@ struct AudioRoomTimelineView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
TimelineStyler(timelineItem: timelineItem) {
|
TimelineStyler(timelineItem: timelineItem) {
|
||||||
HStack(spacing: 8) {
|
Label(title: { Text(timelineItem.body) },
|
||||||
Image(systemName: "waveform")
|
icon: { Image(systemName: "waveform")
|
||||||
.foregroundColor(.compound.iconPrimary)
|
.foregroundColor(.compound.iconPrimary)
|
||||||
FormattedBodyText(text: timelineItem.content.body)
|
})
|
||||||
}
|
.labelStyle(RoomTimelineViewLabelStyle())
|
||||||
.padding(.vertical, 12)
|
.font(.compound.bodyLG)
|
||||||
.padding(.horizontal, 6)
|
.padding(.vertical, 12)
|
||||||
.accessibilityElement(children: .ignore)
|
.padding(.horizontal, 6)
|
||||||
.accessibilityLabel(L10n.commonAudio)
|
.accessibilityLabel(L10n.commonAudio)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,15 +22,15 @@ struct FileRoomTimelineView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
TimelineStyler(timelineItem: timelineItem) {
|
TimelineStyler(timelineItem: timelineItem) {
|
||||||
HStack(spacing: 8) {
|
Label(title: { Text(timelineItem.body) },
|
||||||
Image(systemName: "doc.text.fill")
|
icon: { Image(systemName: "doc.text.fill")
|
||||||
.foregroundColor(.compound.iconPrimary)
|
.foregroundColor(.compound.iconPrimary)
|
||||||
FormattedBodyText(text: timelineItem.content.body)
|
})
|
||||||
}
|
.labelStyle(RoomTimelineViewLabelStyle())
|
||||||
.padding(.vertical, 12)
|
.font(.compound.bodyLG)
|
||||||
.padding(.horizontal, 6)
|
.padding(.vertical, 12)
|
||||||
.accessibilityElement(children: .ignore)
|
.padding(.horizontal, 6)
|
||||||
.accessibilityLabel(L10n.commonFile)
|
.accessibilityLabel(L10n.commonFile)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
BIN
UnitTests/__Snapshots__/PreviewTests/test_audioRoomTimelineView.1.png
(Stored with Git LFS)
BIN
UnitTests/__Snapshots__/PreviewTests/test_audioRoomTimelineView.1.png
(Stored with Git LFS)
Binary file not shown.
BIN
UnitTests/__Snapshots__/PreviewTests/test_audioRoomTimelineView.2.png
(Stored with Git LFS)
BIN
UnitTests/__Snapshots__/PreviewTests/test_audioRoomTimelineView.2.png
(Stored with Git LFS)
Binary file not shown.
BIN
UnitTests/__Snapshots__/PreviewTests/test_fileRoomTimelineView.1.png
(Stored with Git LFS)
BIN
UnitTests/__Snapshots__/PreviewTests/test_fileRoomTimelineView.1.png
(Stored with Git LFS)
Binary file not shown.
BIN
UnitTests/__Snapshots__/PreviewTests/test_fileRoomTimelineView.2.png
(Stored with Git LFS)
BIN
UnitTests/__Snapshots__/PreviewTests/test_fileRoomTimelineView.2.png
(Stored with Git LFS)
Binary file not shown.
BIN
UnitTests/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Thread-decorator.png
(Stored with Git LFS)
BIN
UnitTests/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Thread-decorator.png
(Stored with Git LFS)
Binary file not shown.
BIN
UnitTests/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.Threads.png
(Stored with Git LFS)
BIN
UnitTests/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.Threads.png
(Stored with Git LFS)
Binary file not shown.
1
changelog.d/1810.bugfix
Normal file
1
changelog.d/1810.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Improved the wrapping of the text for File and Audio timeline items.
|
Loading…
x
Reference in New Issue
Block a user