Better timeline top pin view

This commit is contained in:
Thomas Ricouard 2024-01-01 18:23:03 +01:00
parent f0061b36ca
commit ce845cd6b3
1 changed files with 3 additions and 2 deletions

View File

@ -80,12 +80,13 @@ public struct TimelineView: View {
TimelineUnreadStatusesView(observer: viewModel.pendingStatusesObserver)
}
}
.safeAreaInset(edge: .top) {
.safeAreaInset(edge: .top, spacing: 0) {
if canFilterTimeline, !pinnedFilters.isEmpty {
TimelineQuickAccessPills(pinnedFilters: $pinnedFilters, timeline: $timeline)
.padding(.vertical, 8)
.padding(.horizontal, .layoutPadding)
.background(theme.primaryBackgroundColor.opacity(0.50).background(Material.ultraThin))
.background(theme.primaryBackgroundColor.opacity(0.50))
.background(Material.regular)
}
}
.onChange(of: viewModel.scrollToIndex) { _, newValue in