Add name tooltip
This commit is contained in:
@@ -23,6 +23,12 @@ import { Button } from "@/components/ui/button";
|
|||||||
import { TIME_RANGES } from "@/lib/constants";
|
import { TIME_RANGES } from "@/lib/constants";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { Skeleton } from "@/components/ui/skeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
|
import {
|
||||||
|
Tooltip,
|
||||||
|
TooltipContent,
|
||||||
|
TooltipProvider,
|
||||||
|
TooltipTrigger,
|
||||||
|
} from "@/components/ui/tooltip";
|
||||||
|
|
||||||
const ProductGrid = ({
|
const ProductGrid = ({
|
||||||
timeRange = "today",
|
timeRange = "today",
|
||||||
@@ -289,6 +295,9 @@ const ProductGrid = ({
|
|||||||
</td>
|
</td>
|
||||||
<td className="p-1 align-middle min-w-[200px]">
|
<td className="p-1 align-middle min-w-[200px]">
|
||||||
<div className="flex flex-col min-w-0">
|
<div className="flex flex-col min-w-0">
|
||||||
|
<TooltipProvider>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger asChild>
|
||||||
<a
|
<a
|
||||||
href={`https://backend.acherryontop.com/product/${product.id}`}
|
href={`https://backend.acherryontop.com/product/${product.id}`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@@ -297,6 +306,12 @@ const ProductGrid = ({
|
|||||||
>
|
>
|
||||||
{product.name}
|
{product.name}
|
||||||
</a>
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="top" className="max-w-[300px]">
|
||||||
|
<p>{product.name}</p>
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</TooltipProvider>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="p-1 align-middle text-center text-sm font-medium">
|
<td className="p-1 align-middle text-center text-sm font-medium">
|
||||||
|
|||||||
Reference in New Issue
Block a user