Fix chapter text rendering

This commit is contained in:
Ajay
2025-12-01 01:58:39 -05:00
parent 44941acb38
commit a097ed7caf

View File

@@ -957,6 +957,7 @@ class PreviewBar {
const elem = document.createElement("div");
chapterTitle.parentElement.insertBefore(elem, chapterTitle);
elem.classList.add("sponsorChapterText");
elem.classList.add("ytp-chapter-title-content");
if (document.location.host === "tv.youtube.com") {
elem.style.lineHeight = "initial";
}