Make sure width is reverted after fully loading.
This commit is contained in:
parent
636be5435d
commit
bdf043203f
1 changed files with 4 additions and 2 deletions
|
@ -141,8 +141,10 @@ export function Player({ id }: { id: number }) {
|
||||||
- in
|
- in
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
<div className={"m-0 graph" + ((playerState.loading !== -1) ? " loading" : "")} id={"waveform-" + id} style={{
|
<div className={"m-0 graph" + ((playerState.loading !== -1) ? " loading" : "")} id={"waveform-" + id}
|
||||||
width: (playerState.loading*100) + "%"}}>
|
style={(playerState.loading !== -1) ? {
|
||||||
|
width: (playerState.loading*100) + "%"} : {}}
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue