diff --git a/components/tracks/Track.tsx b/components/tracks/Track.tsx index 8e2a3b4..81ee352 100644 --- a/components/tracks/Track.tsx +++ b/components/tracks/Track.tsx @@ -81,7 +81,7 @@ export function Track({ // Draw waveform React.useEffect(() => { - if (!track.audioBuffer || !canvasRef.current || track.collapsed) return; + if (!track.audioBuffer || !canvasRef.current) return; const canvas = canvasRef.current; const ctx = canvas.getContext('2d'); @@ -387,43 +387,41 @@ export function Track({ className="flex-1 relative bg-slate-900 border-b border-border cursor-pointer" onClick={onSelect} > - {!track.collapsed && ( - <> - {track.audioBuffer ? ( - + ) : ( + !track.collapsed && ( + <> +
{isDragging ? 'Drop audio file here' : 'Click to load audio file'}
+or drag & drop
+{isDragging ? 'Drop audio file here' : 'Click to load audio file'}
-or drag & drop
-