theme: fix copy-to-clipboard hove

This commit is contained in:
Sören Weber 2022-02-16 14:37:54 +01:00
parent f053f5a4bf
commit 7c04fdc473
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
3 changed files with 4 additions and 5 deletions
static/js

View file

@ -364,7 +364,7 @@ jQuery(function() {
}
code.addClass('copy-to-clipboard-inline');
code.after('<span class="copy-to-clipboard" title="Copy to clipboard" />');
code.after('<span class="copy-to-clipboard" title="Copy to clipboard"><i class="fas fa-copy"></i>');
code.next('.copy-to-clipboard').on('mouseleave', function() {
$(this).attr('aria-label', null).removeClass('tooltipped tooltipped-s tooltipped-w');
});