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,10 +515,6 @@ struct KeyView: View {
|
|||||||
let bech32 = bech32_pubkey(pubkey) ?? pubkey
|
let bech32 = bech32_pubkey(pubkey) ?? pubkey
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
RoundedRectangle(cornerRadius: 11)
|
|
||||||
.frame(height: 22)
|
|
||||||
.foregroundColor(fillColor())
|
|
||||||
.overlay(
|
|
||||||
HStack {
|
HStack {
|
||||||
Button {
|
Button {
|
||||||
copyPubkey(bech32)
|
copyPubkey(bech32)
|
||||||
@@ -529,12 +525,15 @@ struct KeyView: View {
|
|||||||
.foregroundStyle(hex_to_rgb(pubkey))
|
.foregroundStyle(hex_to_rgb(pubkey))
|
||||||
.symbolRenderingMode(.palette)
|
.symbolRenderingMode(.palette)
|
||||||
}
|
}
|
||||||
.padding(.leading,4)
|
.padding(.trailing, 2)
|
||||||
Text(verbatim: "\(abbrev_pubkey(bech32, amount: 16))")
|
Text(verbatim: "\(abbrev_pubkey(bech32, amount: 16))")
|
||||||
.font(.footnote)
|
.font(.footnote)
|
||||||
.foregroundColor(keyColor())
|
.foregroundColor(keyColor())
|
||||||
}
|
}
|
||||||
)
|
.padding(2)
|
||||||
|
.padding([.leading, .trailing], 3)
|
||||||
|
.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