mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 20:47:11 +03:00
Render preview bar behind scrubber
This commit is contained in:
@@ -158,8 +158,6 @@ class PreviewBar {
|
||||
this.parent.addEventListener("mouseleave", () => this.container.classList.remove("hovered"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
// On the seek bar
|
||||
this.parent.prepend(this.container);
|
||||
}
|
||||
@@ -323,7 +321,11 @@ class PreviewBar {
|
||||
}
|
||||
|
||||
originalSectionClone.remove();
|
||||
progressBar.prepend(newChapterBar);
|
||||
if (this.container?.parentElement === progressBar) {
|
||||
progressBar.insertBefore(newChapterBar, this.container.nextSibling);
|
||||
} else {
|
||||
progressBar.prepend(newChapterBar);
|
||||
}
|
||||
|
||||
// Hide old bar
|
||||
chapterBar.style.display = "none";
|
||||
|
||||
Reference in New Issue
Block a user