summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-03-16 21:40:56 +0100
committerGitHub <noreply@github.com>2023-03-16 15:40:56 -0500
commit272cf6a2a976d4e22cccdaea720f48861d9b200e (patch)
tree2a18a17ad4cd852383cd16797dba53ead04c0530 /web_src
parent4b722068058931ab2734955a6b4120d5fa3d0830 (diff)
downloadgitea-272cf6a2a976d4e22cccdaea720f48861d9b200e.tar.gz
gitea-272cf6a2a976d4e22cccdaea720f48861d9b200e.zip
Make time tooltips interactive (#23526)
Fixes https://codeberg.org/forgejo/forgejo/issues/511 <img width="379" alt="Screenshot 2023-03-16 at 20 23 10" src="https://user-images.githubusercontent.com/115237/225731294-4c6e4f44-bdcc-4c8c-86e2-49f7c03b377d.png">
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/modules/tippy.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/modules/tippy.js b/web_src/js/modules/tippy.js
index ce8f0369f1..720f8ba53b 100644
--- a/web_src/js/modules/tippy.js
+++ b/web_src/js/modules/tippy.js
@@ -33,6 +33,7 @@ export function initTooltip(el, props = {}) {
content,
delay: 100,
role: 'tooltip',
+ ...(el.getAttribute('data-tooltip-interactive') === 'true' ? {interactive: true} : {}),
...props,
});
}