We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97fc817 commit 4bd7e9aCopy full SHA for 4bd7e9a
src/js-components/previewBar.ts
@@ -676,7 +676,7 @@ class PreviewBar {
676
for (let i = 0; i < sections.length; i++) {
677
const section = sections[i] as HTMLElement;
678
const checkElement = section.querySelector(selector) as HTMLElement;
679
- const currentSectionWidthNoMargin = this.getPartialChapterSectionStyle(section, "width") || progressBar.clientWidth;
+ const currentSectionWidthNoMargin = this.getPartialChapterSectionStyle(section, "width") ?? progressBar.clientWidth;
680
const currentSectionWidth = currentSectionWidthNoMargin
681
+ this.getPartialChapterSectionStyle(section, "marginRight");
682
0 commit comments