forked from forgejo/forgejo
Backport #25763 Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
372b622c2b
commit
012b804a9a
10 changed files with 16 additions and 15 deletions
|
@ -143,7 +143,7 @@ export function initGlobalDropzone() {
|
|||
// Create a "Copy Link" element, to conveniently copy the image
|
||||
// or file link as Markdown to the clipboard
|
||||
const copyLinkElement = document.createElement('div');
|
||||
copyLinkElement.className = 'gt-tc';
|
||||
copyLinkElement.className = 'gt-text-center';
|
||||
// The a element has a hardcoded cursor: pointer because the default is overridden by .dropzone
|
||||
copyLinkElement.innerHTML = `<a href="#" style="cursor: pointer;">${svg('octicon-copy', 14, 'copy link')} Copy link</a>`;
|
||||
copyLinkElement.addEventListener('click', (e) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue