mirror of
git://jb55.com/damus
synced 2024-10-06 11:43:21 +00:00
Fix padding
This commit is contained in:
parent
29f192c377
commit
94a67adff9
@ -33,13 +33,14 @@ struct DirectMessagesView: View {
|
||||
NavigationLink(destination: chat, isActive: $open_dm) {
|
||||
EmptyView()
|
||||
}
|
||||
LazyVStack {
|
||||
LazyVStack(spacing: 0) {
|
||||
if model.dms.isEmpty, !model.loading {
|
||||
EmptyTimelineView()
|
||||
} else {
|
||||
let dms = requests ? model.message_requests : model.friend_dms
|
||||
ForEach(dms, id: \.0) { tup in
|
||||
MaybeEvent(tup)
|
||||
.padding(.top, 10)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,6 @@ struct SearchHomeView: View {
|
||||
RoundedRectangle(cornerRadius: 8)
|
||||
.foregroundColor(.secondary.opacity(0.2))
|
||||
}
|
||||
//.padding()
|
||||
}
|
||||
|
||||
var GlobalContent: some View {
|
||||
@ -74,7 +73,7 @@ struct SearchHomeView: View {
|
||||
VStack {
|
||||
MainContent
|
||||
}
|
||||
.safeAreaInset(edge: .top) {
|
||||
.safeAreaInset(edge: .top, spacing: 0) {
|
||||
VStack(spacing: 0) {
|
||||
SearchInput
|
||||
//.frame(maxWidth: 275)
|
||||
|
@ -79,7 +79,8 @@ struct SearchResultsView: View {
|
||||
case .none:
|
||||
Text("none", comment: "No search results.")
|
||||
}
|
||||
}.padding(.horizontal)
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,6 @@ struct SearchView: View {
|
||||
var body: some View {
|
||||
TimelineView(events: $search.events, loading: $search.loading, damus: appstate, show_friend_icon: true, filter: { _ in true })
|
||||
.navigationBarTitle(describe_search(search.search))
|
||||
.padding([.leading, .trailing], 6)
|
||||
.onReceive(handle_notify(.switched_timeline)) { obj in
|
||||
dismiss()
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ struct InnerTimelineView: View {
|
||||
NavigationLink(destination: MaybeBuildThreadView, isActive: $navigating) {
|
||||
EmptyView()
|
||||
}
|
||||
LazyVStack {
|
||||
LazyVStack(spacing: 0) {
|
||||
if events.isEmpty {
|
||||
EmptyTimelineView()
|
||||
} else {
|
||||
@ -44,11 +44,11 @@ struct InnerTimelineView: View {
|
||||
nav_target = ev
|
||||
navigating = true
|
||||
}
|
||||
.padding(.top, 10)
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(.horizontal)
|
||||
.padding(.top,10)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user