damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 186954195d918f270c74547415fc4f66ff5bdcac
parent dba31a9d33f28634efc72fbe0915fbf3615f24fc
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  3 Jan 2023 23:37:33 -0800

profile: tweak button positioning

Diffstat:
Mdamus/Views/ProfileView.swift | 34+++++++++++++++++++---------------
1 file changed, 19 insertions(+), 15 deletions(-)

diff --git a/damus/Views/ProfileView.swift b/damus/Views/ProfileView.swift @@ -203,24 +203,28 @@ struct ProfileView: View { Spacer() - if let profile = data { - if let lnurl = profile.lnurl, lnurl != "" { - LNButton(lnurl: lnurl, profile: profile) + Group { + + if let profile = data { + if let lnurl = profile.lnurl, lnurl != "" { + LNButton(lnurl: lnurl, profile: profile) + } } - } - - DMButton - - if profile.pubkey != damus_state.pubkey { - FollowButtonView( - target: profile.get_follow_target(), - follow_state: damus_state.contacts.follow_state(profile.pubkey) - ) - } else { - NavigationLink(destination: EditMetadataView(damus_state: damus_state)) { - EditButton(damus_state: damus_state) + + DMButton + + if profile.pubkey != damus_state.pubkey { + FollowButtonView( + target: profile.get_follow_target(), + follow_state: damus_state.contacts.follow_state(profile.pubkey) + ) + } 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)