Bläddra i källkod

Changed copy icon to a "href" link

- mouse hover changes the icon
Martin Filser 3 år sedan
förälder
incheckning
6d3ecdea55

+ 1 - 1
client/components/main/editor.jade

@@ -1,5 +1,5 @@
 template(name="editor")
-  span.fa.fa-copy
+  a.fa.fa-copy(title="copy text to clipboard")
   span.copied-tooltip {{_ 'copied'}}
   textarea.editor(
     dir="auto"

+ 1 - 1
client/components/main/editor.js

@@ -286,7 +286,7 @@ BlazeComponent.extendComponent({
   events() {
     return [
       {
-        'click span.fa.fa-copy'(event) {
+        'click a.fa.fa-copy'(event) {
           const $editor = this.$('textarea.editor');
           const promise = Utils.copyTextToClipboard($editor[0].value);
           if (promise) {

+ 1 - 1
client/components/main/editor.styl

@@ -1,6 +1,6 @@
 .new-comment,
 .inlined-form
-  span.fa.fa-copy
+  a.fa.fa-copy
     float: right
     position: relative
     top: 20px