Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Adjust tooltip spacing in Chart component

Chris Rimmerb3dcfd172e73
diff --git a/client/src/app/[site]/main/components/MainSection/Chart.tsx b/client/src/app/[site]/main/components/MainSection/Chart.tsx
index 805e5d3ca..e75a3a07b 100644
--- a/client/src/app/[site]/main/components/MainSection/Chart.tsx
+++ b/client/src/app/[site]/main/components/MainSection/Chart.tsx
@@ -520,8 +520,8 @@ export function Chart({
return (
<ChartTooltip>
{rows.map((row: any, idx: number) => (
- <div key={row.id} className={idx < rows.length - 1 ? "pb-1.5 mb-1.5" : ""}>
- <div className={`px-2 text-xs font-semibold text-muted-foreground ${idx === 0 ? "pt-2" : "pt-1"}`}>
+ <div key={row.id} className={idx < rows.length - 1 ? "pb-0.5 mb-1.5" : ""}>
+ <div className={`px-2 text-xs font-semibold text-muted-foreground ${idx === 0 ? "pt-2" : ""}`}>
{row.label}
</div>
{row.diffPercentage !== null && (