mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 03:41:46 +00:00
fix(style): fix miniplayer style
This commit is contained in:
@ -30,7 +30,7 @@ yt-page-navigation-progress {
|
|||||||
|
|
||||||
/* fix blur navigation bar */
|
/* fix blur navigation bar */
|
||||||
|
|
||||||
ytmusic-app-layout > [slot='player-page'] {
|
ytmusic-app-layout > [slot="player-page"]:not([is-mweb-modernization-enabled]) {
|
||||||
padding-top: 90px;
|
padding-top: 90px;
|
||||||
margin-top: calc(-90px + var(--menu-bar-height, 0px)) !important;
|
margin-top: calc(-90px + var(--menu-bar-height, 0px)) !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#player:not([video-mode]):not(.video-mode):not([player-ui-state='MINIPLAYER']) {
|
#player:not([video-mode]):not(.video-mode):not([player-ui-state='MINIPLAYER']):not([is-mweb-modernization-enabled]) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 auto !important;
|
margin: 0 auto !important;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
|||||||
@ -52,6 +52,11 @@ ytmusic-guide-renderer {
|
|||||||
) !important;
|
) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* fix mini player behavior */
|
||||||
|
ytmusic-app-layout ytmusic-player-page[is-mweb-modernization-enabled] .side-panel.ytmusic-player-page {
|
||||||
|
transform: translate(0, calc(var(--ytmusic-player-page-inner-height) - var(--ytmusic-player-page-tabs-header-height) - var(--ytmusic-player-page-player-bar-height) - var(--menu-bar-height, 32px) ));
|
||||||
|
}
|
||||||
|
|
||||||
/* ytm-bugs: see https://github.com/th-ch/youtube-music/issues/1737 */
|
/* ytm-bugs: see https://github.com/th-ch/youtube-music/issues/1737 */
|
||||||
html {
|
html {
|
||||||
scrollbar-color: unset;
|
scrollbar-color: unset;
|
||||||
|
|||||||
Reference in New Issue
Block a user