Browse Source

Add padding to the followers list

Closes: #162
post-button-style
Amos Elliston 2 years ago
committed by William Casarin
parent
commit
94ad5ad366
  1. 6
      damus/Views/FollowingView.swift

6
damus/Views/FollowingView.swift

@ -12,7 +12,7 @@ struct FollowUserView: View {
let damus_state: DamusState
var body: some View {
HStack(alignment: .top) {
HStack {
let pmodel = ProfileModel(pubkey: target.pubkey, damus: damus_state)
let followers = FollowersModel(damus_state: damus_state, target: target.pubkey)
let pv = ProfileView(damus_state: damus_state, profile: pmodel, followers: followers)
@ -25,6 +25,8 @@ struct FollowUserView: View {
ProfileName(pubkey: target.pubkey, profile: profile, contacts: damus_state.contacts, show_friend_confirmed: false)
if let about = profile.flatMap { $0.about } {
Text(about)
.lineLimit(3)
.font(.footnote)
}
}
@ -51,6 +53,7 @@ struct FollowersView: View {
FollowUserView(target: .pubkey(pk), damus_state: damus_state)
}
}
.padding()
}
.navigationBarTitle("\(Profile.displayName(profile: profile, pubkey: whos))'s Followers")
.onAppear {
@ -78,6 +81,7 @@ struct FollowingView: View {
FollowUserView(target: .pubkey(pk), damus_state: damus_state)
}
}
.padding()
}
.onAppear {
following.subscribe()

Loading…
Cancel
Save