removed home

This commit is contained in:
2026-05-06 23:11:00 -06:00
parent 2212d7b265
commit 850b373d42
9 changed files with 97 additions and 252 deletions

View File

@ -237,6 +237,7 @@ export default function WaveformTimeline({
const headCanvasRef = useRef<HTMLCanvasElement>(null);
const containerRef = useRef<HTMLDivElement>(null);
const [audioError, setAudioError] = useState<string | null>(null);
const [waveformReady, setWaveformReady] = useState(false);
const videoUrl = useEditorStore((s) => s.videoUrl);
const videoPath = useEditorStore((s) => s.videoPath);
@ -349,6 +350,7 @@ export default function WaveformTimeline({
if (cancelled) return;
waveformDataRef.current = waveformData;
drawStaticWaveformRef.current();
setWaveformReady(true);
} catch (err) {
if (cancelled || (err instanceof DOMException && err.name === 'AbortError')) {
console.log('[WaveformTimeline] req=', requestId, 'aborted/cancelled');
@ -1328,7 +1330,7 @@ export default function WaveformTimeline({
Retry
</button>
</div>
) : !waveformDataRef.current ? (
) : !waveformReady ? (
<div className="flex-1 flex items-center justify-center">
<div className="flex flex-col items-center gap-3">
<div className="animate-spin rounded-full h-8 w-8 border-2 border-editor-border border-t-indigo-400" />