From 3b0f161eec7cee70d20621488de4821de17207a4 Mon Sep 17 00:00:00 2001 From: Joe Uhren <46763106+joeuhren@users.noreply.github.com> Date: Wed, 17 Feb 2021 19:55:05 -0700 Subject: [PATCH] Add ZWSP to prevent address copy/paste issues -Fixes the issue where double-clicking a wallet address on the address page selects more text than desired --- views/address.pug | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/views/address.pug b/views/address.pug index 54fdbe6fd..1483de9aa 100644 --- a/views/address.pug +++ b/views/address.pug @@ -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