Skip to content

Better align highlight-bar to new YT embed seek bar - #837

Merged
sphinxrave merged 2 commits into
HolodexNet:devfrom
FlaminSarge:highlight-bar-align
Aug 6, 2026
Merged

sphinxrave merged 2 commits into
HolodexNet:devfrom
FlaminSarge:highlight-bar-align

Conversation

@FlaminSarge

@FlaminSarge FlaminSarge commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

YT seek bar uses 30px padding, plus the seek ball itself is 12px wide, so 36px from left edge to 0:00, same at the end
Also improve granularity of timestamp chips to 0.1% 0.25% instead of 1%, and uses floor instead of round for consistency (going further to 0.01% didn't really improve the positioning any more).

Yes, it reduces the amount of space they have available, so the padding change might be fine to skip, but the granularity should definitely be fixed, as right now it causes far too many timestamps to step on each others' toes.

Screenshots (highlight chips moved to overlay the seek bar for comparison):
Previous - yellow chip being clicked + resulting seekbar location:
Screenshot 2026-05-20 at 2 04 44 AM
Updated - center chip being clicked + resulting seekbar location:
Screenshot 2026-05-20 at 2 03 55 AM
Previous https://holodex.net/watch/DE7WL-YLk8Y:
Screenshot 2026-05-20 at 2 08 15 AM
Updated https://holodex.net/watch/DE7WL-YLk8Y:
Screenshot 2026-05-20 at 2 07 55 AM

YT seek bar uses 30px padding, plus the seek ball itself is 12px wide, so 36px from left edge to 0:00, same at the end
Also improve granularity of timestamp chips to 0.1% instead of 1%
@FlaminSarge
FlaminSarge force-pushed the highlight-bar-align branch from cb1e2b7 to 3f62b3c Compare May 20, 2026 09:16
@FlaminSarge

Copy link
Copy Markdown
Contributor Author

Adjusted to 0.25% granularity because 0.1% could end up really really close together in worst-case (961px window width + timestamps right next to each other, which is a pretty niche case but still).
Screenshot 2026-05-27 at 7 15 49 PM

@sphinxrave
sphinxrave merged commit 54c4939 into HolodexNet:dev Aug 6, 2026
1 check passed
@FlaminSarge
FlaminSarge deleted the highlight-bar-align branch August 7, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants