profile: tweak button positioning
This commit is contained in:
@@ -203,24 +203,28 @@ struct ProfileView: View {
|
|||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
if let profile = data {
|
Group {
|
||||||
if let lnurl = profile.lnurl, lnurl != "" {
|
|
||||||
LNButton(lnurl: lnurl, profile: profile)
|
if let profile = data {
|
||||||
}
|
if let lnurl = profile.lnurl, lnurl != "" {
|
||||||
}
|
LNButton(lnurl: lnurl, profile: profile)
|
||||||
|
}
|
||||||
DMButton
|
}
|
||||||
|
|
||||||
if profile.pubkey != damus_state.pubkey {
|
DMButton
|
||||||
FollowButtonView(
|
|
||||||
target: profile.get_follow_target(),
|
if profile.pubkey != damus_state.pubkey {
|
||||||
follow_state: damus_state.contacts.follow_state(profile.pubkey)
|
FollowButtonView(
|
||||||
)
|
target: profile.get_follow_target(),
|
||||||
} else {
|
follow_state: damus_state.contacts.follow_state(profile.pubkey)
|
||||||
NavigationLink(destination: EditMetadataView(damus_state: damus_state)) {
|
)
|
||||||
EditButton(damus_state: damus_state)
|
} else {
|
||||||
|
NavigationLink(destination: EditMetadataView(damus_state: damus_state)) {
|
||||||
|
EditButton(damus_state: damus_state)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.offset(y: -15.0) // Increase if set a frame
|
||||||
}
|
}
|
||||||
|
|
||||||
ProfileNameView(pubkey: profile.pubkey, profile: data, contacts: damus_state.contacts)
|
ProfileNameView(pubkey: profile.pubkey, profile: data, contacts: damus_state.contacts)
|
||||||
|
|||||||
Reference in New Issue
Block a user