diff options
| -rw-r--r-- | assets/css/default.css | 5 | ||||
| -rw-r--r-- | src/invidious/helpers/utils.cr | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/assets/css/default.css b/assets/css/default.css index c680b0c2..d48f6bb8 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -327,6 +327,11 @@ input[type="search"]::-webkit-search-cancel-button { background-color: rgba(15, 15, 15, 0.5); } +fieldset > select, +span > select { + color: rgba(49, 49, 51, 1); +} + .video-js .vjs-load-progress, .video-js .vjs-load-progress div { background: rgba(87, 87, 88, 1); diff --git a/src/invidious/helpers/utils.cr b/src/invidious/helpers/utils.cr index c1aea5b2..9bdb6a7e 100644 --- a/src/invidious/helpers/utils.cr +++ b/src/invidious/helpers/utils.cr @@ -64,8 +64,8 @@ def recode_length_seconds(time) time = time.seconds text = "#{time.minutes.to_s.rjust(2, '0')}:#{time.seconds.to_s.rjust(2, '0')}" - if time.hours > 0 - text = "#{time.hours.to_s.rjust(2, '0')}:#{text}" + if time.total_hours.to_i > 0 + text = "#{time.total_hours.to_i.to_s.rjust(2, '0')}:#{text}" end text = text.lchop('0') |
