Add portal the live player tooltip (#13389)

This commit is contained in:
Josh Hawkins 2024-08-27 20:14:22 -05:00 committed by Nicolas Mowen
parent 58a8028485
commit 3f996cd62c

View File

@ -18,6 +18,7 @@ import Chip from "../indicators/Chip";
import { capitalizeFirstLetter } from "@/utils/stringUtil"; import { capitalizeFirstLetter } from "@/utils/stringUtil";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { TbExclamationCircle } from "react-icons/tb"; import { TbExclamationCircle } from "react-icons/tb";
import { TooltipPortal } from "@radix-ui/react-tooltip";
type LivePlayerProps = { type LivePlayerProps = {
cameraRef?: (ref: HTMLDivElement | null) => void; cameraRef?: (ref: HTMLDivElement | null) => void;
@ -258,6 +259,7 @@ export default function LivePlayer({
</div> </div>
</TooltipTrigger> </TooltipTrigger>
</div> </div>
<TooltipPortal>
<TooltipContent className="capitalize"> <TooltipContent className="capitalize">
{[ {[
...new Set([ ...new Set([
@ -272,6 +274,7 @@ export default function LivePlayer({
.join(", ") .join(", ")
.replaceAll("-verified", "")} .replaceAll("-verified", "")}
</TooltipContent> </TooltipContent>
</TooltipPortal>
</Tooltip> </Tooltip>
</div> </div>
)} )}