fix: audio waveform height in timeline
This commit is contained in:
parent
68f175d3be
commit
eb28942dab
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue