File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 4
4
}
5
5
6
6
/* youtube-music style */
7
-
8
7
ytmusic-app-layout {
9
8
overflow : scroll;
10
9
height : calc (100vh - var (--menu-bar-height , 36px ));
11
10
margin-top : var (--menu-bar-height , 36px ) !important ;
12
11
}
12
+ ytmusic-app-layout # layout {
13
+ --ytmusic-nav-bar-offset : 0px ;
14
+ }
13
15
14
16
ytmusic-app-layout ::-webkit-scrollbar {
15
17
width : var (--ytmusic-scrollbar-width );
Original file line number Diff line number Diff line change @@ -225,6 +225,7 @@ const preload = async () => {
225
225
t : i18t . bind ( i18next ) ,
226
226
} ;
227
227
defineYTMDTransElements ( ) ;
228
+ document . body . dataset . os = navigator . userAgent ;
228
229
} ;
229
230
230
231
const main = async ( ) => {
Original file line number Diff line number Diff line change @@ -80,3 +80,12 @@ tp-yt-paper-item.ytmusic-guide-entry-renderer::before {
80
80
ytmusic-player [player-ui-state = FULLSCREEN ] {
81
81
margin-top : calc (var (--menu-bar-height , 32px ) * -1 ) !important ;
82
82
}
83
+
84
+ /* macos traffic lights fix */
85
+ : where ([data-os *= "Macintosh" ]) ytmusic-app-layout # layout ytmusic-nav-bar {
86
+ padding-top : var (--ytmusic-nav-bar-offset , 0 );
87
+ }
88
+ : where ([data-os *= "Macintosh" ]) ytmusic-app-layout # layout {
89
+ --ytmusic-nav-bar-offset : 24px ;
90
+ --ytmusic-nav-bar-height : calc (90px + var (--ytmusic-nav-bar-offset , 0 ));
91
+ }
You can’t perform that action at this time.
0 commit comments