diff options
Diffstat (limited to 'src/js-components/skipButtonControlBar.ts')
-rw-r--r-- | src/js-components/skipButtonControlBar.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/js-components/skipButtonControlBar.ts b/src/js-components/skipButtonControlBar.ts index 2a93c49c..a4cf31a5 100644 --- a/src/js-components/skipButtonControlBar.ts +++ b/src/js-components/skipButtonControlBar.ts @@ -41,7 +41,7 @@ export class SkipButtonControlBar { this.container = document.createElement("div"); this.container.classList.add("skipButtonControlBarContainer"); - this.container.classList.add("hidden"); + this.container.classList.add("sbhidden"); if (this.onMobileYouTube) this.container.classList.add("mobile"); this.skipIcon = document.createElement("img"); @@ -103,7 +103,7 @@ export class SkipButtonControlBar { this.refreshText(); this.container?.classList?.remove("textDisabled"); - this.textContainer?.classList?.remove("hidden"); + this.textContainer?.classList?.remove("sbhidden"); AnimationUtils.disableAutoHideAnimation(this.skipIcon); this.startTimer(); @@ -111,8 +111,8 @@ export class SkipButtonControlBar { refreshText(): void { if (this.segment) { - this.chapterText?.classList?.add("hidden"); - this.container.classList.remove("hidden"); + this.chapterText?.classList?.add("sbhidden"); + this.container.classList.remove("sbhidden"); this.textContainer.innerText = this.getTitle(); this.skipIcon.setAttribute("title", this.getTitle()); } @@ -134,10 +134,10 @@ export class SkipButtonControlBar { } disable(): void { - this.container.classList.add("hidden"); + this.container.classList.add("sbhidden"); - this.chapterText?.classList?.remove("hidden"); - this.getChapterPrefix()?.classList?.remove("hidden"); + this.chapterText?.classList?.remove("sbhidden"); + this.getChapterPrefix()?.classList?.remove("sbhidden"); this.enabled = false; } @@ -160,10 +160,10 @@ export class SkipButtonControlBar { } this.container.classList.add("textDisabled"); - this.textContainer?.classList?.add("hidden"); - this.chapterText?.classList?.remove("hidden"); + this.textContainer?.classList?.add("sbhidden"); + this.chapterText?.classList?.remove("sbhidden"); - this.getChapterPrefix()?.classList?.add("hidden"); + this.getChapterPrefix()?.classList?.add("sbhidden"); AnimationUtils.enableAutoHideAnimation(this.skipIcon); if (this.onMobileYouTube) { |