From 504f4cafa083082221b242fa511001f43df38c2b Mon Sep 17 00:00:00 2001 From: Gabe Date: Wed, 22 Oct 2025 21:14:39 +0800 Subject: [PATCH] fix: Adapt to the new UI of youtube --- src/libs/svg.js | 2 +- src/subtitle/YouTubeCaptionProvider.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/svg.js b/src/libs/svg.js index 8e617bb..1f556cb 100644 --- a/src/libs/svg.js +++ b/src/libs/svg.js @@ -69,7 +69,7 @@ export function createLoadingSVG() { export function createLogoSVG({ width = "100%", height = "100%", - viewBox = "-20 -20 70 70", + viewBox = "0 -5 70 70", isSelected = false, } = {}) { const svg = createSVGElement("svg", { diff --git a/src/subtitle/YouTubeCaptionProvider.js b/src/subtitle/YouTubeCaptionProvider.js index 085f6e2..d88e35f 100644 --- a/src/subtitle/YouTubeCaptionProvider.js +++ b/src/subtitle/YouTubeCaptionProvider.js @@ -199,7 +199,7 @@ class YouTubeCaptionProvider { } }; this.#toggleButton = toggleButton; - this.#ytControls?.before(kissControls); + this.#ytControls?.prepend(kissControls); } #isSameLang(lang1, lang2) {