mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
add tooltip portal (#10233)
This commit is contained in:
parent
c2a537ce22
commit
85ce672b53
@ -8,6 +8,7 @@ import {
|
|||||||
} from "@/components/ui/tooltip";
|
} from "@/components/ui/tooltip";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { isDesktop } from "react-device-detect";
|
import { isDesktop } from "react-device-detect";
|
||||||
|
import { TooltipPortal } from "@radix-ui/react-tooltip";
|
||||||
|
|
||||||
const variants = {
|
const variants = {
|
||||||
primary: {
|
primary: {
|
||||||
@ -61,9 +62,11 @@ export default function NavItem({
|
|||||||
<Icon className="size-5 md:m-[6px]" />
|
<Icon className="size-5 md:m-[6px]" />
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
</NavLink>
|
</NavLink>
|
||||||
<TooltipContent side="right">
|
<TooltipPortal>
|
||||||
<p>{title}</p>
|
<TooltipContent side="right">
|
||||||
</TooltipContent>
|
<p>{title}</p>
|
||||||
|
</TooltipContent>
|
||||||
|
</TooltipPortal>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user