1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-21 09:48:37 +00:00

rework stopwatch using relative-time

This commit is contained in:
silverwind
2024-04-29 22:23:36 +02:00
parent 7a8bc5e59c
commit 44ac098c23
7 changed files with 99 additions and 119 deletions

View File

@@ -96,6 +96,7 @@ function attachTooltip(target, content = null) {
function switchTitleToTooltip(target) {
let title = target.getAttribute('title');
if (target.getAttribute('data-no-tooltip')) return;
if (title) {
// apply custom formatting to relative-time's tooltips
if (target.tagName.toLowerCase() === 'relative-time') {