« get me outta code hell

client: hoverable-tooltip: don't consider horizontal overlap going rightward - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-04-28 19:27:03 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-04-28 19:27:03 -0300
commiteb3032a97a2a195627929c56215e3f080f28aca8 (patch)
tree739b64a5832454cf1e620e0ffadba315a6aec2f4
parent26ea1e70c92f0fb59cd66e817d6d284b2e0568f5 (diff)
client: hoverable-tooltip: don't consider horizontal overlap going rightward
...because tooltip content already runs toward the right, and will
meet the expected amount of overlap naturally
-rw-r--r--src/static/js/client/hoverable-tooltip.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/client/hoverable-tooltip.js b/src/static/js/client/hoverable-tooltip.js
index 99fe14f6..e0c74747 100644
--- a/src/static/js/client/hoverable-tooltip.js
+++ b/src/static/js/client/hoverable-tooltip.js
@@ -897,7 +897,7 @@ export function getTooltipFromHoverablePlacementOpportunityAreas(hoverable) {
 
   const rightRightLeft =
     WikiRect.leftOf(
-      hoverableRect.left - neededHorizontalOverlap + tooltipRect.width);
+      hoverableRect.left + tooltipRect.width);
 
   const leftLeftRight =
     WikiRect.rightOf(