From 4c3ec3ea6b8d909466044071bee3b852c6bf0845 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 25 Oct 2026 07:48:17 -0700 Subject: One seek bar under a feed video: the moments timeline shows beneath a clip only when the post has timed reactions to mark (the player's own bar does the seeking) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01QjVvE4YAcK3AGwV7kZXeN4 --- src/media-timeline.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/media-timeline.js') diff --git a/src/media-timeline.js b/src/media-timeline.js index 8b6045e..648c998 100644 --- a/src/media-timeline.js +++ b/src/media-timeline.js @@ -123,6 +123,9 @@ export function mediaTimeline(player, url, { h, event, moments, glyph, label }) } const items = ev && finite ? moments(ev.id, url) : []; const next = items.map(x => x.id).join(',') + '@' + (finite ? player.duration : 0); + // a video has its own seek bar: this one shows under it only to carry + // what was said at a moment (two bars read as a glitch on a phone) + box.classList.toggle('has-marks', items.length > 0); if (signature !== next) { signature = next; marks.replaceChildren(...items.map(x => h('button', { type: 'button', class: 'media-mark', title: mediaClock(x.moment.seconds) + ' ' + x.text, -- cgit v1.2.3