1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-04-14 09:42:12 -04:00

Add video duration to overlay

Fixes #498
This commit is contained in:
Zed
2025-11-29 03:38:40 +01:00
parent 7a08a9e132
commit 96ec75fc7f
3 changed files with 24 additions and 0 deletions

View File

@@ -109,6 +109,7 @@ proc renderVideo*(video: Video; prefs: Prefs; path: string): VNode =
video(poster=thumb, data-url=source, data-autoload="false", muted=prefs.muteVideos)
verbatim "<div class=\"video-overlay\" onclick=\"playVideo(this)\">"
tdiv(class="overlay-circle"): span(class="overlay-triangle")
tdiv(class="overlay-duration"): text getDuration(video)
verbatim "</div>"
if container.len > 0:
tdiv(class="card-content"):