Hide playlist visualizer when stopped (#1072)

Fized #1071
This commit is contained in:
Jordan Eldredge 2021-03-13 21:07:23 -08:00 committed by GitHub
parent b1b504b589
commit 2031895fc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -162,10 +162,6 @@
left: 79px;
}
#webamp #main-window.stop #visualizer {
display: none;
}
#webamp .text {
display: none;
}

View file

@ -150,6 +150,10 @@ function Visualizer({ analyser }: Props) {
};
}, [canvas, paintFrame]);
if (status === MEDIA_STATUS.STOPPED) {
return null;
}
return (
<canvas
id="visualizer"