client: Make sure tooltips cannot overlap (fixes #375)

This commit is contained in:
Elian Doran 2024-09-01 00:04:29 +03:00
parent 607af4b8fc
commit 84efc13b52
No known key found for this signature in database

View File

@ -16,10 +16,14 @@ function setupGlobalTooltip() {
return;
}
$('.note-tooltip').remove();
cleanUpTooltips;
});
}
function cleanUpTooltips() {
$('.note-tooltip').remove();
}
function setupElementTooltip($el) {
$el.on('mouseenter', mouseEnterHandler);
}
@ -85,6 +89,7 @@ async function mouseEnterHandler() {
customClass: linkId
});
cleanUpTooltips();
$(this).tooltip('show');
// Dismiss the tooltip immediately if a link was clicked inside the tooltip.