Fix video disappearing when hovering over grid items
Reset clickedVideoId state on mouse enter in CategoryRow component to prevent unintended video hiding. 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
This commit is contained in:
parent
6583dfb235
commit
74a94cacac
@ -225,8 +225,8 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
|
||||
key={video.id}
|
||||
className="flex-shrink-0 w-[calc(50vw-2px)] sm:w-[calc(33.33vw-2px)] md:w-[calc(25vw-2px)] lg:w-[calc(20vw-2px)] relative group"
|
||||
onMouseEnter={() => {
|
||||
// Only reset if hovering over a different video
|
||||
if (clickedVideoId && clickedVideoId !== video.id) {
|
||||
// Reset clicked state when hovering over any video
|
||||
if (clickedVideoId) {
|
||||
setClickedVideoId(null);
|
||||
}
|
||||
}}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user