Update Width of Copy Pubkey Background

Changelog-Fixed: Fixed width of copy pubkey on profile page
Closes: #714
This commit is contained in:
Joel Klabo
2023-02-28 18:52:29 -08:00
committed by William Casarin
parent a325a3c064
commit 174f7f6cc5

View File

@@ -515,10 +515,6 @@ struct KeyView: View {
let bech32 = bech32_pubkey(pubkey) ?? pubkey
HStack {
RoundedRectangle(cornerRadius: 11)
.frame(height: 22)
.foregroundColor(fillColor())
.overlay(
HStack {
Button {
copyPubkey(bech32)
@@ -529,12 +525,15 @@ struct KeyView: View {
.foregroundStyle(hex_to_rgb(pubkey))
.symbolRenderingMode(.palette)
}
.padding(.leading,4)
.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(fillColor()))
if isCopied != true {
Button {
copyPubkey(bech32)