From 7eee36fc504857a274ad35238dcbdb944fee9865 Mon Sep 17 00:00:00 2001 From: kuekhaoyang Date: Wed, 19 Nov 2025 12:25:17 +0800 Subject: [PATCH] feat: Refactor Badge and VideoCard components for improved styling and layout consistency --- components/search/VideoGrid.tsx | 8 +++----- components/ui/Badge.tsx | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/components/search/VideoGrid.tsx b/components/search/VideoGrid.tsx index 900c05f..e6673f7 100644 --- a/components/search/VideoGrid.tsx +++ b/components/search/VideoGrid.tsx @@ -102,19 +102,17 @@ const VideoCard = memo(({ {/* Badge Container - Top, spans full width with proper spacing */} -
+
{/* Source Badge - Left */} {video.sourceName && ( - + {video.sourceName} )} {/* Latency Badge - Right */} {video.latency !== undefined && ( -
- -
+ )}
diff --git a/components/ui/Badge.tsx b/components/ui/Badge.tsx index c198ee6..7f567d4 100644 --- a/components/ui/Badge.tsx +++ b/components/ui/Badge.tsx @@ -40,9 +40,9 @@ const BadgeComponent = memo(function Badge({