Skip to content

Commit

Permalink
Add ZWSP to prevent address copy/paste issues
Browse files Browse the repository at this point in the history
-Fixes the issue where double-clicking a wallet address on the address page selects more text than desired
  • Loading branch information
joeuhren authored Feb 18, 2021
1 parent ca62816 commit 3b0f161
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions views/address.pug
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,27 @@ block content
.card.card-default.card-address-summary
.card-header(style='position:relative;')
strong #{address.a_id}
if settings.labels[address.a_id]
if settings.labels[address.a_id].type
label(class='label label-'+settings.labels[address.a_id].type+' pull-right hidden-xs', style='margin-left:15px;')
=settings.labels[address.a_id].label
if settings.labels[address.a_id].url
a(href=settings.labels[address.a_id].url, target='_blank')
span.fa.fa-question-circle(style='margin-left:5px;')
else
label.label.label-default.pull-right.hidden-xs(style='margin-left:15px;')
=settings.labels[address.a_id].label
if settings.labels[address.a_id].url
a(href=settings.labels[address.a_id].url, target='_blank')
span.fa.fa-question-circle(style='margin-left:5px;')
| ​
if settings.labels[address.a_id]
if settings.labels[address.a_id].type
label(class='label label-'+settings.labels[address.a_id].type+' pull-right hidden-xs', style='margin-left:15px;')
=settings.labels[address.a_id].label
if settings.labels[address.a_id].url
a(href=settings.labels[address.a_id].url, target='_blank')
span.fa.fa-question-circle(style='margin-left:5px;')
else
if address.name !== "" && typeof address.name !== "undefined"
label.badge.badge-pill.pull-right.d-none.d-sm-block(style='margin-left:15px;')
=address.name
else
a.badge.badge-pill.pull-right.d-none.d-sm-block(href="/address/"+ address.a_id +"/claim" style="font-size: smaller;")
=" Is this yours? Claim it now for free!"
label.label.label-default.pull-right.hidden-xs(style='margin-left:15px;')
=settings.labels[address.a_id].label
if settings.labels[address.a_id].url
a(href=settings.labels[address.a_id].url, target='_blank')
span.fa.fa-question-circle(style='margin-left:5px;')
else
if address.name !== "" && typeof address.name !== "undefined"
label.badge.badge-pill.pull-right.d-none.d-sm-block(style='margin-left:15px;')
=address.name
else
a.badge.badge-pill.pull-right.d-none.d-sm-block(href="/address/"+ address.a_id +"/claim" style="font-size: smaller;")
=" Is this yours? Claim it now for free!"
table.table.table-bordered.table-striped.summary-table
thead
tr
Expand Down

0 comments on commit 3b0f161

Please sign in to comment.