From 63f6702f8666835b6b6f378fd7ab67d1e8aae98e Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 30 Dec 2021 01:08:54 -0500 Subject: [PATCH] Fix chapter bar breaking when adding new unsubmitted segments --- src/js-components/previewBar.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index a98800ba..94d8a176 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -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)));