Files
invidious/assets/css
Fijxu 4a618775e4 feat: add minute badge to the watch page, right next to the title of the video (#6112)
* minute badge added to watch page

* replace time calculations with the stdlib's native functions

Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>

* reordered duration badge to be before audio mode toggle

* abbreviated length logic abstracted into a helper function

* space added between badge and texts

* run ameba linter

* move it between the title and listen button

* use border radius of 3px, since that is the buttons of purecss uses

* chore: move the css element to a more appropiate place + add missing support for dark mode css

* chore: hide time indicator if length_seconds is less than 0 or nil

* chore: add TODO statement for the locales

---------

Co-authored-by: discollizard <discollizard@github.com>
Co-authored-by: discollizard <49206310+discollizard@users.noreply.github.com>
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
2026-11-02 00:58:01 -03:00
..
2024-02-16 16:22:43 -05:00
2023-03-27 22:56:29 -04:00
2019-08-27 08:01:33 -05:00
2025-05-19 22:34:59 -04:00
2019-08-27 08:01:33 -05:00