The open-source CapCut alternative
fix: audio waveform height in timeline
Maze Winthereb28942dab4b
diff --git a/apps/web/src/components/editor/panels/timeline/audio-waveform.tsx b/apps/web/src/components/editor/panels/timeline/audio-waveform.tsxindex cbb19bd0..a481f1c2 100644--- a/apps/web/src/components/editor/panels/timeline/audio-waveform.tsx+++ b/apps/web/src/components/editor/panels/timeline/audio-waveform.tsx@@ -112,7 +112,7 @@ export function AudioWaveform({async function load() {let buffer = audioBuffer ?? null;- if (!buffer && audioUrl) {+ if (!buffer && audioUrl) {try {const resp = await fetch(audioUrl);const arrayBuffer = await resp.arrayBuffer();diff --git a/apps/web/src/components/editor/panels/timeline/timeline-element.tsx b/apps/web/src/components/editor/panels/timeline/timeline-element.tsxindex 3ebd3efa..644dbc56 100644--- a/apps/web/src/components/editor/panels/timeline/timeline-element.tsx+++ b/apps/web/src/components/editor/panels/timeline/timeline-element.tsx@@ -575,7 +575,7 @@ function ElementInner({)}style={{ height: `${baseTrackHeight}px` }}>- <div className="flex flex-1 min-h-0 items-center overflow-hidden">+ <div className="flex flex-1 min-h-0 h-full items-center overflow-hidden"><ElementContent element={element} track={track} /></div></div>