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";
|
||||
import { useState } from "react";
|
||||
import { isDesktop } from "react-device-detect";
|
||||
import { TooltipPortal } from "@radix-ui/react-tooltip";
|
||||
|
||||
const variants = {
|
||||
primary: {
|
||||
@ -61,9 +62,11 @@ export default function NavItem({
|
||||
<Icon className="size-5 md:m-[6px]" />
|
||||
</TooltipTrigger>
|
||||
</NavLink>
|
||||
<TooltipContent side="right">
|
||||
<p>{title}</p>
|
||||
</TooltipContent>
|
||||
<TooltipPortal>
|
||||
<TooltipContent side="right">
|
||||
<p>{title}</p>
|
||||
</TooltipContent>
|
||||
</TooltipPortal>
|
||||
</Tooltip>
|
||||
)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user