From fcdad5b00b07c12d8ef86ce31bfdbc47ecc4c5f5 Mon Sep 17 00:00:00 2001 From: Jonathan Gamble Date: Fri, 22 Nov 2024 10:33:04 -0600 Subject: [PATCH] use outerWidth/outerHeight for powertip hover hitbox --- ui/common/css/component/_friend-box.scss | 2 +- ui/site/src/powertip.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/common/css/component/_friend-box.scss b/ui/common/css/component/_friend-box.scss index 1e65f257a1599..fe993d6df1a68 100644 --- a/ui/common/css/component/_friend-box.scss +++ b/ui/common/css/component/_friend-box.scss @@ -71,7 +71,7 @@ &.tv { flex: 0 0 auto; - padding: 0 5px 0 0; + padding: 0 5px; } &.friend-study { diff --git a/ui/site/src/powertip.ts b/ui/site/src/powertip.ts index a5762f5dd475d..ee4ac94aabe22 100644 --- a/ui/site/src/powertip.ts +++ b/ui/site/src/powertip.ts @@ -698,9 +698,9 @@ function isMouseOver(element: Cash) { const elementPosition = element.offset()!; return ( session.currentX >= elementPosition.left && - session.currentX <= elementPosition.left + element.width() && + session.currentX <= elementPosition.left + element.outerWidth() && session.currentY >= elementPosition.top && - session.currentY <= elementPosition.top + element.height() + session.currentY <= elementPosition.top + element.outerHeight() ); }