Timeline subtitle

This commit is contained in:
Thomas Ricouard 2024-07-04 08:54:23 +02:00
parent 6f3f8e9dd0
commit d7429c078f
2 changed files with 8 additions and 2 deletions

View file

@ -222,12 +222,18 @@ public struct TimelineView: View {
Text(timeline.localizedTitle())
.font(.caption)
.foregroundStyle(.secondary)
case .home:
case let .link(url, _):
Text(timeline.localizedTitle())
.font(.headline)
Text(url.host() ?? url.absoluteString)
.font(.caption)
.foregroundStyle(.secondary)
default:
Text(timeline.localizedTitle())
.font(.headline)
Text(client.server)
.font(.caption)
.foregroundStyle(.secondary)
}
}
.accessibilityRepresentation {

View file

@ -303,7 +303,7 @@ extension TimelineViewModel: StatusesFetcher {
}
}
// Fetch pages from the top most status of the tomeline.
// Fetch pages from the top most status of the timeline.
private func fetchNewPagesFrom(latestStatus: String, client: Client) async throws {
canStreamEvents = false
let initialTimeline = timeline