damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 300cae68002843c3f5c38dd88d266f32e207512e
parent 36107a2752a11ada655a1a358aba1da729c08429
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 17 Dec 2022 17:01:54 -0800

Revert "ui: Add more padding everywhere."

This reverts commit 36107a2752a11ada655a1a358aba1da729c08429.

Diffstat:
Mdamus/ContentView.swift | 1-
Mdamus/Views/EventView.swift | 3+--
Mdamus/Views/PostButton.swift | 2+-
3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/damus/ContentView.swift b/damus/ContentView.swift @@ -180,7 +180,6 @@ struct ContentView: View { if let damus = self.damus_state { NavigationView { MainContent(damus: damus) - .padding([.leading, .trailing]) .toolbar { ToolbarItem(placement: .navigationBarLeading) { let profile_model = ProfileModel(pubkey: damus_state!.pubkey, damus: damus_state!) diff --git a/damus/Views/EventView.swift b/damus/Views/EventView.swift @@ -94,10 +94,8 @@ struct EventView: View { .buttonStyle(PlainButtonStyle()) TextEvent(inner_ev, pubkey: inner_ev.pubkey) } - .padding([.top], 2) } else { TextEvent(event, pubkey: pubkey) - .padding([.top], 6) } } } @@ -148,6 +146,7 @@ struct EventView: View { .background(event_validity_color(event.validity)) .id(event.id) .frame(maxWidth: .infinity, minHeight: PFP_SIZE) + .padding([.bottom], 4) .event_context_menu(event, privkey: damus.keypair.privkey) } } diff --git a/damus/Views/PostButton.swift b/damus/Views/PostButton.swift @@ -18,7 +18,7 @@ func PostButton(action: @escaping () -> ()) -> some View { }) .background(Color.blue) .cornerRadius(38.5) - .padding(.bottom) + .padding() .shadow(color: Color.black.opacity(0.3), radius: 3, x: 3,