mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +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;
|
||||
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
|
||||
.querySelector('ytmusic-player')
|
||||
?.setAttribute('has-av-switcher', '');
|
||||
document
|
||||
.querySelector('ytmusic-av-toggle')
|
||||
?.removeAttribute('toggle-disabled');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -139,6 +142,9 @@ export default createPlugin({
|
||||
document
|
||||
.querySelector('ytmusic-player')
|
||||
?.removeAttribute('has-av-switcher');
|
||||
document
|
||||
.querySelector('ytmusic-av-toggle')
|
||||
?.setAttribute('toggle-disabled', '');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user