File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 24
24
right : 0 ;
25
25
text-align : center ;
26
26
}
27
+
28
+ & .portrait-thumbnail {
29
+ min-width : 75px ;
30
+ width : 7.5% ;
31
+ }
27
32
}
28
33
29
34
#shaka-player-ui-time-container {
Original file line number Diff line number Diff line change @@ -546,6 +546,11 @@ shaka.ui.SeekBar = class extends shaka.ui.RangeElement {
546
546
Math . min ( Math . floor ( seekRange . end ) , value ) ) ;
547
547
const thumbnail =
548
548
await this . player . getThumbnails ( /* trackId= */ null , playerValue ) ;
549
+ if ( thumbnail . width < thumbnail . height ) {
550
+ this . thumbnailContainer_ . classList . add ( 'portrait-thumbnail' ) ;
551
+ } else {
552
+ this . thumbnailContainer_ . classList . remove ( 'portrait-thumbnail' ) ;
553
+ }
549
554
if ( ! thumbnail || ! thumbnail . uris . length ) {
550
555
this . hideThumbnail_ ( ) ;
551
556
return ;
You can’t perform that action at this time.
0 commit comments