Browse Source

ui: Add more padding everywhere.

The app felt a bit claustrophobic

Changed-Changed: Added padding in more views so it feels less claustrophobic
profile-edit
Sam DuBois 2 years ago
committed by William Casarin
parent
commit
36107a2752
  1. 1
      damus/ContentView.swift
  2. 3
      damus/Views/EventView.swift
  3. 2
      damus/Views/PostButton.swift

1
damus/ContentView.swift

@ -180,6 +180,7 @@ 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!)

3
damus/Views/EventView.swift

@ -94,8 +94,10 @@ struct EventView: View {
.buttonStyle(PlainButtonStyle())
TextEvent(inner_ev, pubkey: inner_ev.pubkey)
}
.padding([.top], 2)
} else {
TextEvent(event, pubkey: pubkey)
.padding([.top], 6)
}
}
}
@ -146,7 +148,6 @@ 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)
}
}

2
damus/Views/PostButton.swift

@ -18,7 +18,7 @@ func PostButton(action: @escaping () -> ()) -> some View {
})
.background(Color.blue)
.cornerRadius(38.5)
.padding()
.padding(.bottom)
.shadow(color: Color.black.opacity(0.3),
radius: 3,
x: 3,

Loading…
Cancel
Save