From 6583dfb2355ee0a13dc3fcd6b97e2f6d9cf48c40 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 30 Aug 2025 13:02:49 +0000 Subject: [PATCH] Improve video grid interaction by preventing accidental hiding Adjusted the `CategoryRow` component in `netflix-grid.tsx` to prevent the video details from hiding when hovering over a different video within the same category row, specifically when a video is already selected. 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/7j5FE92 --- client/src/components/netflix-grid.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index af200d5..6d8fecc 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -224,7 +224,12 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
setClickedVideoId(null)} + onMouseEnter={() => { + // Only reset if hovering over a different video + if (clickedVideoId && clickedVideoId !== video.id) { + setClickedVideoId(null); + } + }} > {/* Top 10 Number overlay for first category */} {category.title.includes("Top 10") && index < 10 && clickedVideoId !== video.id && (