commit 94ad5ad366a2c00f10ebdb0e52293a1d2726da2f
parent cabe3cf791bd99e5ddb56b7ee9698d3cf3a2f1f7
Author: Amos Elliston <7338+famoseagle@users.noreply.github.com>
Date: Mon, 26 Dec 2022 19:32:50 -0800
Add padding to the followers list
Closes: #162
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/damus/Views/FollowingView.swift b/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()