Tweak the thread summary design

This commit is contained in:
Stefan Ceriu
2025-06-10 12:32:21 +03:00
committed by Stefan Ceriu
parent 2ee19d609c
commit 21ece09678
11 changed files with 19 additions and 18 deletions
@@ -422,7 +422,7 @@ struct TimelineItemBubbledStylerView_Previews: PreviewProvider, TestablePreview
ScrollView {
let threadSummary = TimelineItemThreadSummary.loaded(senderID: "@alice:matrix.org",
sender: .init(id: "@alice:matrix.org", displayName: "Alice"),
latestEventContent: .message(.text(.init(body: "This is a threaded message"))))
latestEventContent: .message(.text(.init(body: "This is a very long, multi-lined, threaded message"))))
MockTimelineContent(threadSummary: threadSummary)
}
@@ -121,6 +121,7 @@ struct TimelineThreadSummaryView: View {
.accessibilityLabel(L10n.commonInReplyTo(sender?.disambiguatedDisplayName ?? senderID))
Text(context.viewState.buildMessagePreview(formattedBody: formattedBody, plainBody: plainBody))
.multilineTextAlignment(.leading)
.font(.compound.bodyXS)
.foregroundColor(.compound.textSecondary)
.tint(.compound.textLinkExternal)