Skip to content

Commit

Permalink
YDA-5737: add margin for copy button
Browse files Browse the repository at this point in the history
  • Loading branch information
leonidastri committed Jun 14, 2024
1 parent ae8b730 commit a0d5c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/static/user/js/data_transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $(document).ready(function () {
code = snippets[i].getElementsByTagName('code')[0].innerText;

snippets[i].classList.add('hljs'); // append copy button to pre tag
snippets[i].innerHTML = '<button id="button' + (i+1) + '" class="hljs-copy btn btn-secondary btn-copy-to-clipboard" style="float: right;"><i class="fa fa-copy"></i> Copy</button>' + snippets[i].innerHTML;
snippets[i].innerHTML = '<button id="button' + (i+1) + '" class="hljs-copy btn btn-secondary btn-copy-to-clipboard mt-2 me-2" style="float: right;"><i class="fa fa-copy"></i> Copy</button>' + snippets[i].innerHTML;
}

$('.btn-copy-to-clipboard').on('click', function(event) {
Expand Down

0 comments on commit a0d5c3f

Please sign in to comment.