From 5cdbc233e483c5b0b2275d5c32a29cbb89aacc61 Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 1 Oct 2024 23:12:56 -0400 Subject: Fix time without skips on mobile --- src/content.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index b4d16964..0391bd28 100644 --- a/src/content.ts +++ b/src/content.ts @@ -2649,7 +2649,12 @@ function showTimeWithoutSkips(skippedDuration: number): void { duration = document.createElement('span'); duration.id = durationID; - display.appendChild(duration); + if (isOnMobileYouTube()) { + duration.style.paddingLeft = "4px"; + display.insertBefore(duration, display.lastChild); + } else { + display.appendChild(duration); + } } const durationAfterSkips = getFormattedTime(getVideoDuration() - skippedDuration); -- cgit v1.2.3