Skip to content

Commit a8bc539

Browse files
committed
fix(style): fix miniplayer style
1 parent ed700c2 commit a8bc539

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/plugins/album-color-theme/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ yt-page-navigation-progress {
3030

3131
/* fix blur navigation bar */
3232

33-
ytmusic-app-layout > [slot='player-page'] {
33+
ytmusic-app-layout > [slot="player-page"]:not([is-mweb-modernization-enabled]) {
3434
padding-top: 90px;
3535
margin-top: calc(-90px + var(--menu-bar-height, 0px)) !important;
3636
}

src/plugins/ambient-mode/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
height: 100%;
3030
}
3131

32-
#player:not([video-mode]):not(.video-mode):not([player-ui-state='MINIPLAYER']) {
32+
#player:not([video-mode]):not(.video-mode):not([player-ui-state='MINIPLAYER']):not([is-mweb-modernization-enabled]) {
3333
width: 100%;
3434
margin: 0 auto !important;
3535
overflow: visible;

src/plugins/in-app-menu/titlebar.css

+5
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ ytmusic-guide-renderer {
5252
) !important;
5353
}
5454

55+
/* fix mini player behavior */
56+
ytmusic-app-layout ytmusic-player-page[is-mweb-modernization-enabled] .side-panel.ytmusic-player-page {
57+
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) ));
58+
}
59+
5560
/* ytm-bugs: see https://github.com/th-ch/youtube-music/issues/1737 */
5661
html {
5762
scrollbar-color: unset;

0 commit comments

Comments
 (0)