Skip to content

Open source CapCut alternative.

TypeScript

fix(site): the chart tooltip stays beside the cursor

David Le6a46784d8ce1
diff --git a/site/src/components/ui/chart.tsx b/site/src/components/ui/chart.tsx
index 3d59b156..f8c076dd 100644
--- a/site/src/components/ui/chart.tsx
+++ b/site/src/components/ui/chart.tsx
@@ -191,7 +191,7 @@ function ChartTooltipContent({
return (
<div
className={cn(
- "grid min-w-32 items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",
+ "grid min-w-32 max-w-72 items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",
className
)}
>