From 13eaab4947aaf53b9e808bff40b5a4624fc45bb7 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Sat, 14 Feb 2026 18:30:49 +0000 Subject: [PATCH] Disable tooltip auto-hide, reduce font size --- templates/servers/detail.twig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/servers/detail.twig b/templates/servers/detail.twig index 776ce41..d1db141 100755 --- a/templates/servers/detail.twig +++ b/templates/servers/detail.twig @@ -515,6 +515,7 @@ new Chart(ctx{{ metricName|replace({'-': '_', '.': '_'}) }}, { tooltipEl.style.color = 'white'; tooltipEl.style.borderRadius = '3px'; tooltipEl.style.padding = '10px'; + tooltipEl.style.fontSize = '12px'; tooltipEl.style.pointerEvents = 'none'; document.body.appendChild(tooltipEl); } @@ -561,9 +562,9 @@ new Chart(ctx{{ metricName|replace({'-': '_', '.': '_'}) }}, { tooltipEl.style.top = position.top + window.pageYOffset + context.tooltip.caretY + 'px'; // Hide after 3 seconds - setTimeout(function() { - tooltipEl.style.opacity = 0; - }, 3000); +// setTimeout(function() { +// tooltipEl.style.opacity = 0; +// }, 3000); }); } }