From 5625703168b9ef0b2e90ac13993adc7e63df06f0 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Mon, 9 Mar 2026 23:00:44 +0100 Subject: [PATCH] fix: move annotations and live indicator inside Card component --- components/dashboard/Chart.tsx | 120 ++++++++++++++++----------------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/components/dashboard/Chart.tsx b/components/dashboard/Chart.tsx index b3fbecd..38b9d21 100644 --- a/components/dashboard/Chart.tsx +++ b/components/dashboard/Chart.tsx @@ -517,70 +517,70 @@ export default function Chart({ )} - - {/* Annotation tags */} - {annotationMarkers.length > 0 && ( -
- Annotations: - {annotationMarkers.map((marker) => { - const primary = marker.annotations[0] - const color = ANNOTATION_COLORS[primary.category] || ANNOTATION_COLORS.other - const count = marker.annotations.length - return ( -
- - - ) - })} - - )} - - {/* Live indicator */} - {lastUpdatedAt != null && ( -
-
- - - - - Live · {formatUpdatedAgo(lastUpdatedAt)} + + ) + })}
-
- )} + )} + + {/* Live indicator */} + {lastUpdatedAt != null && ( +
+
+ + + + + Live · {formatUpdatedAgo(lastUpdatedAt)} +
+
+ )} + {/* ─── Right-click Context Menu ──────────────────────────────── */} {contextMenu && (