1
0
Эх сурвалжийг харах

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 5 сар өмнө
parent
commit
c7a6081daf

+ 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