From 59dfb5890f77acf754114ea16e560a07f3422ebd Mon Sep 17 00:00:00 2001 From: ai_coder Date: Thu, 22 Oct 2026 09:38:56 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=D1=83=D0=BB=D1=83=D1=87=D1=88=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B4=D0=B5=D0=BB=D0=B5=D0=B3=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20mouseover=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=B2=D0=B5=D1=81=D1=8C=20=D0=B1=D0=BB=D0=BE=D0=BA=20.uptime-s?= =?UTF-8?q?egs=20=D0=B4=D0=BB=D1=8F=20=D1=81=D1=82=D0=B0=D0=B1=D0=B8=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=8B=D1=85=20=D1=82=D1=83=D0=BB=D1=82=D0=B8=D0=BF?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/index.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/static/index.html b/app/static/index.html index 87b99a0..0cd2f1c 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -379,11 +379,14 @@ function escapeHtml(s) { // Делегирование: тултип на весь контейнер сегментов. document.addEventListener('mouseover', e => { - const seg = e.target.closest('.uptime-seg[data-seg]'); - if (seg) showSegTip(seg); + const seg = e.target.closest('.uptime-seg[data-seg]') || e.target.closest('.uptime-segs'); + if (seg) { + const targetSeg = seg.classList.contains('uptime-seg') ? seg : seg.querySelector('.uptime-seg[data-seg]'); + if (targetSeg) showSegTip(targetSeg); + } }); document.addEventListener('mouseout', e => { - if (e.target.closest('.uptime-seg[data-seg]')) hideSegTip(); + if (e.target.closest('.uptime-seg[data-seg]') || e.target.closest('.uptime-segs')) hideSegTip(); }); document.addEventListener('scroll', hideSegTip, true);