Revert "ui: Add more padding everywhere."
This reverts commit 36107a2752.
This commit is contained in:
@@ -180,7 +180,6 @@ struct ContentView: View {
|
|||||||
if let damus = self.damus_state {
|
if let damus = self.damus_state {
|
||||||
NavigationView {
|
NavigationView {
|
||||||
MainContent(damus: damus)
|
MainContent(damus: damus)
|
||||||
.padding([.leading, .trailing])
|
|
||||||
.toolbar {
|
.toolbar {
|
||||||
ToolbarItem(placement: .navigationBarLeading) {
|
ToolbarItem(placement: .navigationBarLeading) {
|
||||||
let profile_model = ProfileModel(pubkey: damus_state!.pubkey, damus: damus_state!)
|
let profile_model = ProfileModel(pubkey: damus_state!.pubkey, damus: damus_state!)
|
||||||
|
|||||||
@@ -94,10 +94,8 @@ struct EventView: View {
|
|||||||
.buttonStyle(PlainButtonStyle())
|
.buttonStyle(PlainButtonStyle())
|
||||||
TextEvent(inner_ev, pubkey: inner_ev.pubkey)
|
TextEvent(inner_ev, pubkey: inner_ev.pubkey)
|
||||||
}
|
}
|
||||||
.padding([.top], 2)
|
|
||||||
} else {
|
} else {
|
||||||
TextEvent(event, pubkey: pubkey)
|
TextEvent(event, pubkey: pubkey)
|
||||||
.padding([.top], 6)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -148,6 +146,7 @@ struct EventView: View {
|
|||||||
.background(event_validity_color(event.validity))
|
.background(event_validity_color(event.validity))
|
||||||
.id(event.id)
|
.id(event.id)
|
||||||
.frame(maxWidth: .infinity, minHeight: PFP_SIZE)
|
.frame(maxWidth: .infinity, minHeight: PFP_SIZE)
|
||||||
|
.padding([.bottom], 4)
|
||||||
.event_context_menu(event, privkey: damus.keypair.privkey)
|
.event_context_menu(event, privkey: damus.keypair.privkey)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ func PostButton(action: @escaping () -> ()) -> some View {
|
|||||||
})
|
})
|
||||||
.background(Color.blue)
|
.background(Color.blue)
|
||||||
.cornerRadius(38.5)
|
.cornerRadius(38.5)
|
||||||
.padding(.bottom)
|
.padding()
|
||||||
.shadow(color: Color.black.opacity(0.3),
|
.shadow(color: Color.black.opacity(0.3),
|
||||||
radius: 3,
|
radius: 3,
|
||||||
x: 3,
|
x: 3,
|
||||||
|
|||||||
Reference in New Issue
Block a user