Make sure width is reverted after fully loading.

This commit is contained in:
Matthew Stratford 2020-04-06 15:24:57 +01:00
parent 636be5435d
commit bdf043203f

View file

@ -141,8 +141,10 @@ export function Player({ id }: { id: number }) {
- in
</span>
)}
<div className={"m-0 graph" + ((playerState.loading !== -1) ? " loading" : "")} id={"waveform-" + id} style={{
width: (playerState.loading*100) + "%"}}>
<div className={"m-0 graph" + ((playerState.loading !== -1) ? " loading" : "")} id={"waveform-" + id}
style={(playerState.loading !== -1) ? {
width: (playerState.loading*100) + "%"} : {}}
>
</div>
</div>
</div>