Fix chapter bar breaking when adding new unsubmitted segments

This commit is contained in:
Ajay
2021-12-30 01:08:54 -05:00
parent 02bc554b0e
commit 63f6702f86

View File

@@ -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)));