Skip to content

Commit 7ccf660

Browse files
committed
feat(remaining-time-display): displays remaining time in x-small or tiny
When the current time and media duration are displayed, it's easy for the user to visualize the time remaining to play. However, when the player is displayed in x-small or tiny, no time indication is shown. - modify `_layout.scss` to display the remaining time when the player is displayed in x-small or tiny.
1 parent 8d3c744 commit 7ccf660

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scss/components/_layout.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@
4545
font-weight: bold;
4646
}
4747

48+
&:not(.vjs-live) {
49+
&.vjs-layout-x-small .vjs-remaining-time,
50+
&.vjs-layout-tiny .vjs-remaining-time {
51+
display: block;
52+
padding: 0;
53+
font-weight: bold;
54+
}
55+
}
56+
4857
/*
4958
******************************************************************************
5059
-- Progress control

0 commit comments

Comments
 (0)