diff options
| author | Adam Soltys <[email protected]> | 2026-10-25 07:48:17 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-25 07:48:17 -0700 |
| commit | 4c3ec3ea6b8d909466044071bee3b852c6bf0845 (patch) | |
| tree | ed2cc88a5cb6ad2d284584775a5a8d550e5befc2 /src/media-timeline.js | |
| parent | 43a35d0fe6abc56b6594015ae1028842c04a2c19 (diff) | |
| download | coinosv3-4c3ec3ea6b8d909466044071bee3b852c6bf0845.tar.gz coinosv3-4c3ec3ea6b8d909466044071bee3b852c6bf0845.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QjVvE4YAcK3AGwV7kZXeN4
Diffstat (limited to 'src/media-timeline.js')
| -rw-r--r-- | src/media-timeline.js | 3 |
1 files changed, 3 insertions, 0 deletions
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, |
