From bad85bbe5572978291c64632c117f4828cb5f9a7 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 30 Aug 2025 23:10:23 +0000 Subject: [PATCH] Improve video navigation button styling and remove console logs Remove console logs from video navigation functions and update button class names for improved styling. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 344ec1e0-1186-4058-bbff-2e9619a7b1e0 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/344ec1e0-1186-4058-bbff-2e9619a7b1e0/zJYuV6w --- client/src/pages/VideoPage.tsx | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index 8ed4250..2d5f21b 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -85,17 +85,8 @@ export default function VideoPage() { }; const navigateToVideo = (direction: 'next' | 'prev') => { - console.log('Navigate clicked:', direction); - console.log('All videos length:', allVideos.length); - console.log('Current video:', currentVideo?.title); - const currentIndex = getCurrentVideoIndex(); - console.log('Current index:', currentIndex); - - if (currentIndex === -1) { - console.log('Video not found in list'); - return; - } + if (currentIndex === -1) return; let newIndex; if (direction === 'next') { @@ -105,8 +96,6 @@ export default function VideoPage() { } const newVideo = allVideos[newIndex]; - console.log('New video:', newVideo?.title); - if (newVideo) { setLocation(`/video/${newVideo.id}`); } @@ -429,7 +418,6 @@ export default function VideoPage() { onClick={(e) => { e.preventDefault(); e.stopPropagation(); - console.log('Prev button clicked'); navigateToVideo('prev'); }} className="absolute left-2 top-1/2 transform -translate-y-1/2 bg-black/90 hover:bg-black text-white border-none p-4 rounded-full shadow-xl flex items-center justify-center" @@ -443,7 +431,6 @@ export default function VideoPage() { onClick={(e) => { e.preventDefault(); e.stopPropagation(); - console.log('Next button clicked'); navigateToVideo('next'); }} className="absolute right-2 top-1/2 transform -translate-y-1/2 bg-black/90 hover:bg-black text-white border-none p-4 rounded-full shadow-xl flex items-center justify-center"