From 3a174ea27a0104e89d636e480ae9015f14a3886c Mon Sep 17 00:00:00 2001 From: Peak Twilight <77903714+peaktwilight@users.noreply.github.com> Date: Wed, 18 Jun 2025 17:17:13 +0200 Subject: [PATCH] Update src/components/HeartbeatBar.vue Co-authored-by: Frank Elsinga --- src/components/HeartbeatBar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/HeartbeatBar.vue b/src/components/HeartbeatBar.vue index d97ab1a89..5c16ebd57 100644 --- a/src/components/HeartbeatBar.vue +++ b/src/components/HeartbeatBar.vue @@ -424,9 +424,9 @@ export default { const tooltipWidth = 120; // Approximate tooltip width let adjustedX = x; - if (x - tooltipWidth / 2 < 10) { + if ((x - tooltipWidth / 2) < 10) { adjustedX = tooltipWidth / 2 + 10; - } else if (x + tooltipWidth / 2 > window.innerWidth - 10) { + } else if ((x + tooltipWidth / 2) > (window.innerWidth - 10)) { adjustedX = window.innerWidth - tooltipWidth / 2 - 10; }