NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
fix tooltip not showing if too far left (#6909)
spacebares3d40ed5d4743
diff --git a/web/src/components/Tooltip.jsx b/web/src/components/Tooltip.jsxindex ba56f20b8e..58f723ac5f 100644--- a/web/src/components/Tooltip.jsx+++ b/web/src/components/Tooltip.jsx@@ -29,7 +29,7 @@ export default function Tooltip({ relativeTo, text }) {let newLeft = left - Math.round(tipWidth / 2);// too far rightif (newLeft + tipWidth + TIP_SPACE > windowWidth - window.scrollX) {- newLeft = left - tipWidth - TIP_SPACE;+ newLeft = Math.max(0, left - tipWidth - TIP_SPACE);newTop = top - Math.round(tipHeight / 2);}// too far left