diff --git a/client/src/components/bunny-video-modal.tsx b/client/src/components/bunny-video-modal.tsx index e7fa984..a9bf7e8 100644 --- a/client/src/components/bunny-video-modal.tsx +++ b/client/src/components/bunny-video-modal.tsx @@ -54,10 +54,6 @@ function formatDate(date: Date | string): string { export default function BunnyVideoModal({ video, isOpen, onClose, onEdit, videos = [], onVideoChange }: BunnyVideoModalProps) { const [showShareMenu, setShowShareMenu] = useState(false); - // Debug log - useEffect(() => { - console.log('Modal state:', { isOpen, video: video?.title || 'none' }); - }, [isOpen, video]); // Navigation functions const getCurrentVideoIndex = () => { diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index 813f74d..4137d49 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -139,6 +139,7 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { const [clickedVideoId, setClickedVideoId] = useState(null); const scroll = (direction: 'left' | 'right') => { + console.log('Scroll clicked:', direction); if (scrollRef.current) { // Viewport-based scroll amount for full-width cards const containerWidth = scrollRef.current.clientWidth; @@ -149,6 +150,7 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { ? currentScroll - scrollAmount : currentScroll + scrollAmount; + console.log('Scrolling from', currentScroll, 'to', targetScroll); scrollRef.current.scrollTo({ left: targetScroll, behavior: 'smooth'