From 145acda9cc0acdf64576195ea56143fe88baf191 Mon Sep 17 00:00:00 2001 From: infiinte-persistence Date: Wed, 1 Jul 2020 02:14:12 +0800 Subject: [PATCH] [mobile] show "time left/progress" on video player bar ## Fixes: 4220 ## Changes: For `vjs-layout-small`, there is still space to display the said controls. This layout covers devices like Galaxy S5 up to Nexus 6P. For layouts smaller that that (e.g. 'vjs-layout-xsmall'), they will remain hidden. --- ui/scss/component/_file-render.scss | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ui/scss/component/_file-render.scss b/ui/scss/component/_file-render.scss index 3b6bb24da..96c1faa1a 100644 --- a/ui/scss/component/_file-render.scss +++ b/ui/scss/component/_file-render.scss @@ -339,6 +339,24 @@ } } +.video-js:not(.vjs-fullscreen).vjs-layout-small { + .vjs-current-time { + display: flex; + padding-left: 0.5em; + padding-right: 0; + } + + .vjs-time-divider { + display: flex; + } + + .vjs-duration { + display: flex; + padding-left: 0; + padding-right: 0.5em; + } +} + .video-js:hover { .vjs-big-play-button { background-color: var(--color-primary);