forked from gitea/gitea
1
0
Fork 0
gitea/web_src/js/modules
silverwind 0b654fa8dc
Clipboard copy enhancements (#27669)
1. Do not show temporary tooltips that are triggered from within
dropdowns. Previously this resulted in the tooltip being stuck to
top-left of the page like seen on issue comment URL copy. I could not
figure out any tippy options that prevent this, so I think it's better
to just not show it.
1. Refactor `initGlobalCopyToClipboardListener` so that it does not run
a often useless `document.querySelector` on every click, make
`data-clipboard-text-type` work with `data-clipboard-target`. No use in
current code base but still good to have. Finally some minor code
cleanup in the function.

Point 1 is for this copy button:

<img width="229" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/81f34746-8ea5-43d9-8c6f-f6f417a9e4ad">

---------

Co-authored-by: Giteabot <teabot@gitea.io>
2023-10-18 15:16:06 +00:00
..
aria Improve dropdown's behavior when there is a search input in menu (#27526) 2023-10-09 06:48:51 +00:00
dirauto.js Check newly added node type before "attachDirAuto" (#26972) 2023-09-08 18:17:08 +08:00
fetch.js Replace ajax with fetch, improve image diff (#27267) 2023-10-11 12:34:21 +00:00
fetch.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
fomantic.js Improve dropdown's behavior when there is a search input in menu (#27526) 2023-10-09 06:48:51 +00:00
sortable.js Import `sortablejs` only once (#25936) 2023-07-17 18:06:37 +00:00
stores.js Refactor diffFileInfo / DiffTreeStore (#24998) 2023-05-30 18:53:15 +08:00
tippy.js Clipboard copy enhancements (#27669) 2023-10-18 15:16:06 +00:00
toast.js Refactor toast module (#26677) 2023-08-23 07:25:13 +00:00
toast.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00