NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Add portal the live player tooltip (#13389)
Josh Hawkinsca0f6e4c0af7
diff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsxindex 9a0b6f3db6..79de3b5a22 100644--- a/web/src/components/player/LivePlayer.tsx+++ b/web/src/components/player/LivePlayer.tsx@@ -18,6 +18,7 @@ import Chip from "../indicators/Chip";import { capitalizeFirstLetter } from "@/utils/stringUtil";import { cn } from "@/lib/utils";import { TbExclamationCircle } from "react-icons/tb";+import { TooltipPortal } from "@radix-ui/react-tooltip";type LivePlayerProps = {cameraRef?: (ref: HTMLDivElement | null) => void;@@ -258,20 +259,22 @@ export default function LivePlayer({</div></TooltipTrigger></div>- <TooltipContent className="capitalize">- {[- ...new Set([- ...(objects || []).map(({ label, sub_label }) =>- label.endsWith("verified") ? sub_label : label,- ),- ]),- ]- .filter((label) => label?.includes("-verified") == false)- .map((label) => capitalizeFirstLetter(label))- .sort()- .join(", ")- .replaceAll("-verified", "")}- </TooltipContent>+ <TooltipPortal>+ <TooltipContent className="capitalize">+ {[+ ...new Set([+ ...(objects || []).map(({ label, sub_label }) =>+ label.endsWith("verified") ? sub_label : label,+ ),+ ]),+ ]+ .filter((label) => label?.includes("-verified") == false)+ .map((label) => capitalizeFirstLetter(label))+ .sort()+ .join(", ")+ .replaceAll("-verified", "")}+ </TooltipContent>+ </TooltipPortal></Tooltip></div>)}