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