mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 20:47:11 +03:00
Fix chapter bar breaking when adding new unsubmitted segments
This commit is contained in:
@@ -366,6 +366,7 @@ class PreviewBar {
|
||||
section.style.marginRight = "2px";
|
||||
section.style.width = `calc(${this.timeToPercentage(duration)} - 2px)`;
|
||||
} else {
|
||||
section.style.marginRight = "0";
|
||||
section.style.width = this.timeToPercentage(duration);
|
||||
}
|
||||
section.setAttribute("decimal-width", String(this.timeToDecimal(duration)));
|
||||
|
||||
Reference in New Issue
Block a user