Fix preview bar not appearing on mobile due to new layout

Fixes #2109
This commit is contained in:
Ajay
2024-09-23 01:37:11 -04:00
parent aef2b113f8
commit dbd0d157a8
2 changed files with 2 additions and 7 deletions

View File

@@ -512,12 +512,8 @@ function handleMobileControlsMutations(): void {
function getPreviewBarAttachElement(): HTMLElement | null { function getPreviewBarAttachElement(): HTMLElement | null {
const progressElementOptions = [{ const progressElementOptions = [{
// For new mobile YouTube (#1287) // For newer mobile YouTube (Sept 2024)
selector: ".progress-bar-line", selector: ".YtChapteredProgressBarHost",
isVisibleCheck: true
}, {
// For newer mobile YouTube (Jan 2024)
selector: ".YtProgressBarProgressBarLine",
isVisibleCheck: true isVisibleCheck: true
}, { }, {
// For newer mobile YouTube (May 2024) // For newer mobile YouTube (May 2024)

View File

@@ -197,7 +197,6 @@ class PreviewBar {
if (this.onMobileYouTube) { if (this.onMobileYouTube) {
this.container.style.transform = "none"; this.container.style.transform = "none";
this.container.style.height = "var(--yt-progress-bar-height)";
} else if (!this.onInvidious) { } else if (!this.onInvidious) {
this.container.classList.add("sbNotInvidious"); this.container.classList.add("sbNotInvidious");
} }