commit 94a67adff9ed24c64de8b29e0548ef1794b7f619
parent 29f192c37778671fb3c94873db210b39a19713c5
Author: OlegAba <mail@olegaba.com>
Date: Sat, 11 Feb 2023 16:44:31 -0500
Fix padding
Diffstat:
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/damus/Views/DirectMessagesView.swift b/damus/Views/DirectMessagesView.swift
@@ -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)
}
}
}
diff --git a/damus/Views/SearchHomeView.swift b/damus/Views/SearchHomeView.swift
@@ -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)
diff --git a/damus/Views/SearchResultsView.swift b/damus/Views/SearchResultsView.swift
@@ -79,7 +79,8 @@ struct SearchResultsView: View {
case .none:
Text("none", comment: "No search results.")
}
- }.padding(.horizontal)
+ }
+ .padding()
}
}
diff --git a/damus/Views/SearchView.swift b/damus/Views/SearchView.swift
@@ -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()
}
diff --git a/damus/Views/TimelineView.swift b/damus/Views/TimelineView.swift
@@ -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)
}
}