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
|
||||
</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>
|
||||
|
|
Loading…
Reference in a new issue