From 83cc193eec162fb5b0d9a301d24009f0f15f72c3 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 30 Aug 2025 14:33:46 +0000 Subject: [PATCH] Hide video title when preview is actively playing Conditionally render the video title overlay in VideoCard component based on the `showPreview` state to hide it during active playback previews. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/DVZN4Rp --- client/src/components/video-card.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/client/src/components/video-card.tsx b/client/src/components/video-card.tsx index d19e8b4..5b54515 100644 --- a/client/src/components/video-card.tsx +++ b/client/src/components/video-card.tsx @@ -205,15 +205,17 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP )} - {/* Title overlay - positioned above duration */} -
-
{video.title}
-
- {formatViews(video.views)} - - {formatDate(video.createdAt)} + {/* Title overlay - only show when not playing preview */} + {!showPreview && ( +
+
{video.title}
+
+ {formatViews(video.views)} + + {formatDate(video.createdAt)} +
-
+ )} {/* Duration badge */}