mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
cherry-picked: Fixed canvas injected at the wrong position
Co-authored-by: MiepHD <63968466+MiepHD@users.noreply.github.com>
This commit is contained in:
@ -1,9 +1,5 @@
|
||||
#player {
|
||||
margin: 0 !important;
|
||||
background: black;
|
||||
}
|
||||
|
||||
#song-image,
|
||||
#song-video {
|
||||
display: none !important;
|
||||
#visualizer {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
@ -33,9 +33,7 @@ export default (options: ConfigType<'visualizer'>) => {
|
||||
if (!canvas) {
|
||||
canvas = document.createElement('canvas');
|
||||
canvas.id = 'visualizer';
|
||||
canvas.style.position = 'absolute';
|
||||
canvas.style.background = 'black';
|
||||
visualizerContainer.append(canvas);
|
||||
visualizerContainer.prepend(canvas);
|
||||
}
|
||||
|
||||
const resizeCanvas = () => {
|
||||
|
||||
Reference in New Issue
Block a user