Skip to content

Commit

Permalink
Part 2: Fix Copy Card Link to Clipboard button at card title did not …
Browse files Browse the repository at this point in the history
…work.

Thanks to 2020product and xet7 !

Related #2922
  • Loading branch information
xet7 committed Feb 10, 2020
1 parent 799bf57 commit 4467a68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/cards/cardDetails.jade
Expand Up @@ -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'}}"
Expand Down
6 changes: 6 additions & 0 deletions client/components/cards/cardDetails.styl
Expand Up @@ -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
Expand Down

0 comments on commit 4467a68

Please sign in to comment.