Ver código fonte

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 19 horas atrás
pai
commit
c7a6081daf
1 arquivos alterados com 2 adições e 1 exclusões
  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)
   // 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)
   const collapseTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null)
   useEffect(() => {
   useEffect(() => {
     // Clear any pending collapse
     // Clear any pending collapse