Fix padding and other minor UI improvements

This commit is contained in:
Jacob Davis
2022-12-17 16:11:19 -05:00
committed by William Casarin
parent 300cae6800
commit 2c44366ca5
9 changed files with 72 additions and 42 deletions

View File

@@ -73,11 +73,11 @@ struct ContentView: View {
let timer = Timer.publish(every: 4, on: .main, in: .common).autoconnect()
let sub_id = UUID().description
@Environment(\.colorScheme) var colorScheme
var PostingTimelineView: some View {
VStack{
FiltersView
.padding([.bottom], 8)
ZStack {
if let damus = self.damus_state {
TimelineView(events: $home.events, loading: $home.loading, damus: damus, show_friend_icon: false, filter: filter_event)
@@ -89,6 +89,16 @@ struct ContentView: View {
}
}
}
.safeAreaInset(edge: .top) {
VStack(spacing: 0) {
FiltersView
//.frame(maxWidth: 275)
.padding()
Divider()
.frame(height: 1)
}
.background(colorScheme == .dark ? Color.black : Color.white)
}
}
var FiltersView: some View {
@@ -139,7 +149,7 @@ struct ContentView: View {
EmptyView()
}
}
.navigationBarTitle("Damus", displayMode: .inline)
.navigationBarTitle(selected_timeline == .home ? "Home" : "Global", displayMode: .inline)
}
var MaybeSearchView: some View {