Update Width of Copy Pubkey Background
Changelog-Fixed: Fixed width of copy pubkey on profile page Closes: #714
This commit is contained in:
committed by
William Casarin
parent
a325a3c064
commit
174f7f6cc5
@@ -515,26 +515,25 @@ struct KeyView: View {
|
|||||||
let bech32 = bech32_pubkey(pubkey) ?? pubkey
|
let bech32 = bech32_pubkey(pubkey) ?? pubkey
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
RoundedRectangle(cornerRadius: 11)
|
HStack {
|
||||||
.frame(height: 22)
|
Button {
|
||||||
.foregroundColor(fillColor())
|
copyPubkey(bech32)
|
||||||
.overlay(
|
} label: {
|
||||||
HStack {
|
Label(NSLocalizedString("Public Key", comment: "Label indicating that the text is a user's public account key."), systemImage: "key.fill")
|
||||||
Button {
|
.font(.custom("key", size: 12.0))
|
||||||
copyPubkey(bech32)
|
.labelStyle(IconOnlyLabelStyle())
|
||||||
} label: {
|
.foregroundStyle(hex_to_rgb(pubkey))
|
||||||
Label(NSLocalizedString("Public Key", comment: "Label indicating that the text is a user's public account key."), systemImage: "key.fill")
|
.symbolRenderingMode(.palette)
|
||||||
.font(.custom("key", size: 12.0))
|
}
|
||||||
.labelStyle(IconOnlyLabelStyle())
|
.padding(.trailing, 2)
|
||||||
.foregroundStyle(hex_to_rgb(pubkey))
|
Text(verbatim: "\(abbrev_pubkey(bech32, amount: 16))")
|
||||||
.symbolRenderingMode(.palette)
|
.font(.footnote)
|
||||||
}
|
.foregroundColor(keyColor())
|
||||||
.padding(.leading,4)
|
}
|
||||||
Text(verbatim: "\(abbrev_pubkey(bech32, amount: 16))")
|
.padding(2)
|
||||||
.font(.footnote)
|
.padding([.leading, .trailing], 3)
|
||||||
.foregroundColor(keyColor())
|
.background(RoundedRectangle(cornerRadius: 11).foregroundColor(fillColor()))
|
||||||
}
|
|
||||||
)
|
|
||||||
if isCopied != true {
|
if isCopied != true {
|
||||||
Button {
|
Button {
|
||||||
copyPubkey(bech32)
|
copyPubkey(bech32)
|
||||||
|
|||||||
Reference in New Issue
Block a user