diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-02-10 19:37:25 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2020-02-10 19:37:25 +0200 |
commit | 4467a68b97a3fbf0fbae7f05177d978f2aa80287 (patch) | |
tree | 6558789aa6a375fc981f25576c18e8eccccb98ba | |
parent | 799bf5735b3bdaba8e1c95621795ce2972244fcb (diff) | |
download | wekan-4467a68b97a3fbf0fbae7f05177d978f2aa80287.tar.gz wekan-4467a68b97a3fbf0fbae7f05177d978f2aa80287.tar.bz2 wekan-4467a68b97a3fbf0fbae7f05177d978f2aa80287.zip |
Part 2: Fix Copy Card Link to Clipboard button at card title did not work.
Thanks to 2020product and xet7 !
Related https://github.com/wekan/wekan/pull/2922
-rw-r--r-- | client/components/cards/cardDetails.jade | 2 | ||||
-rw-r--r-- | client/components/cards/cardDetails.styl | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade index e238823f..e8bb72a4 100644 --- a/client/components/cards/cardDetails.jade +++ b/client/components/cards/cardDetails.jade @@ -8,7 +8,7 @@ template(name="cardDetails") a.fa.fa-times-thin.close-card-details.js-close-card-details if currentUser.isBoardMember a.fa.fa-navicon.card-details-menu.js-open-card-details-menu - input.inline-input(type="hidden" id="cardURL_copy" value="{{ absoluteUrl }}") + input.inline-input(type="text" id="cardURL_copy" value="{{ absoluteUrl }}") a.fa.fa-link.card-copy-button.js-copy-link( class="fa-link" title="{{_ 'copy-card-link-to-clipboard'}}" diff --git a/client/components/cards/cardDetails.styl b/client/components/cards/cardDetails.styl index fd6122eb..80fa87c0 100644 --- a/client/components/cards/cardDetails.styl +++ b/client/components/cards/cardDetails.styl @@ -4,6 +4,12 @@ avatar-radius = 50% +#cardURL_copy + // Have clipboard text not visible by moving it to far left + position: absolute + left: -2000px + top: 0px + .assignee border-radius: 3px display: block |