damus

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

commit 8eebc2abe57f13f29d87afe496be69c1394a61ae
parent c22199165aebbe46b9a7357185e71139a72125d1
Author: Ben Weeks <ben.weeks@outlook.com>
Date:   Sun, 28 May 2023 13:28:14 +0100

Minor changes to profile ready for rebrand Key removal from nPub in profile

Diffstat:
Mdamus/Views/Profile/ProfileView.swift | 24++++++------------------
1 file changed, 6 insertions(+), 18 deletions(-)

diff --git a/damus/Views/Profile/ProfileView.swift b/damus/Views/Profile/ProfileView.swift @@ -540,24 +540,12 @@ struct KeyView: View { let bech32 = bech32_pubkey(pubkey) ?? pubkey HStack { - HStack { - Button { - copyPubkey(bech32) - } label: { - Label(NSLocalizedString("Public Key", comment: "Label indicating that the text is a user's public account key."), systemImage: "key.fill") - .font(.custom("key", size: 12.0)) - .labelStyle(IconOnlyLabelStyle()) - .foregroundStyle(hex_to_rgb(pubkey)) - .symbolRenderingMode(.palette) - } - .padding(.trailing, 2) - Text(verbatim: "\(abbrev_pubkey(bech32, amount: 16))") - .font(.footnote) - .foregroundColor(keyColor()) - } - .padding(2) - .padding([.leading, .trailing], 3) - .background(RoundedRectangle(cornerRadius: 11).foregroundColor(DamusColors.adaptableGrey)) + Text(verbatim: "\(abbrev_pubkey(bech32, amount: 16))") + .font(.footnote) + .foregroundColor(keyColor()) + .padding(5) + .padding([.leading, .trailing], 5) + .background(RoundedRectangle(cornerRadius: 11).foregroundColor(DamusColors.adaptableGrey)) if isCopied != true { Button {