diff options
-rw-r--r-- | src/js-components/previewBar.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index c07b173d..46042c8c 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -776,6 +776,11 @@ class PreviewBar { const chapterTitle = chaptersContainer.querySelector(".ytp-chapter-title-content") as HTMLDivElement; chapterTitle.innerText = chosenSegment.description || shortCategoryName(chosenSegment.category); + if (chosenSegment.actionType !== ActionType.Chapter) { + chapterTitle.classList.add("sponsorBlock-segment-title"); + } else { + chapterTitle.classList.remove("sponsorBlock-segment-title"); + } if (chosenSegment.source === SponsorSourceType.Server) { const chapterVoteContainer = this.chapterVote.getContainer(); |