Explorar o código

Fix NowPlayingBar content hidden during countdown between patterns

The bar's internal isPlaying variable didn't include pause_time_remaining,
causing all UI content (controls, preview, countdown) to be hidden even
though the bar itself was visible.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris hai 16 horas
pai
achega
c7a6081daf
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      frontend/src/components/NowPlayingBar.tsx

+ 2 - 1
frontend/src/components/NowPlayingBar.tsx

@@ -293,7 +293,8 @@ export function NowPlayingBar({ isLogsOpen = false, logsDrawerHeight = 256, isVi
   }, [])
 
   // Auto-collapse when nothing is playing (with delay to avoid race condition)
-  const isPlaying = status?.is_running || status?.is_paused
+  // Include pause_time_remaining to keep UI active during countdown between patterns
+  const isPlaying = status?.is_running || status?.is_paused || (status?.pause_time_remaining ?? 0) > 0
   const collapseTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null)
   useEffect(() => {
     // Clear any pending collapse