Skip to content

Commit

Permalink
fix(style): fix miniplayer style
Browse files Browse the repository at this point in the history
  • Loading branch information
Su-Yong committed Mar 23, 2024
1 parent ed700c2 commit a8bc539
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/album-color-theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ yt-page-navigation-progress {

/* fix blur navigation bar */

ytmusic-app-layout > [slot='player-page'] {
ytmusic-app-layout > [slot="player-page"]:not([is-mweb-modernization-enabled]) {
padding-top: 90px;
margin-top: calc(-90px + var(--menu-bar-height, 0px)) !important;
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/ambient-mode/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
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%;
margin: 0 auto !important;
overflow: visible;
Expand Down
5 changes: 5 additions & 0 deletions src/plugins/in-app-menu/titlebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ ytmusic-guide-renderer {
) !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 */
html {
scrollbar-color: unset;
Expand Down

0 comments on commit a8bc539

Please sign in to comment.