mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix(ambient-mode): fix ambient-mode overlapping other elements (#2609)
Co-authored-by: h-banii <h-banii@users.noreply.github.com>
This commit is contained in:
@ -34,3 +34,12 @@
|
|||||||
margin: 0 auto !important;
|
margin: 0 auto !important;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fix ambient mode overlapping other elements #2520 */
|
||||||
|
.song-button.ytmusic-av-toggle, .video-button.ytmusic-av-toggle {
|
||||||
|
z-index: 1;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
#side-panel.side-panel.ytmusic-player-page {
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|||||||
@ -129,6 +129,9 @@ export default createPlugin({
|
|||||||
document
|
document
|
||||||
.querySelector('ytmusic-player')
|
.querySelector('ytmusic-player')
|
||||||
?.setAttribute('has-av-switcher', '');
|
?.setAttribute('has-av-switcher', '');
|
||||||
|
document
|
||||||
|
.querySelector('ytmusic-av-toggle')
|
||||||
|
?.removeAttribute('toggle-disabled');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,6 +142,9 @@ export default createPlugin({
|
|||||||
document
|
document
|
||||||
.querySelector('ytmusic-player')
|
.querySelector('ytmusic-player')
|
||||||
?.removeAttribute('has-av-switcher');
|
?.removeAttribute('has-av-switcher');
|
||||||
|
document
|
||||||
|
.querySelector('ytmusic-av-toggle')
|
||||||
|
?.setAttribute('toggle-disabled', '');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user