From f07750d8b6595990c5ec0440cb44840ae533ef66 Mon Sep 17 00:00:00 2001 From: Ajay Date: Mon, 23 Dec 2024 16:35:40 -0500 Subject: [PATCH] Fix breaking UI with vorapis v3 installed --- src/utils/titleBar.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/utils/titleBar.ts b/src/utils/titleBar.ts index 9f54761..fef011f 100644 --- a/src/utils/titleBar.ts +++ b/src/utils/titleBar.ts @@ -50,10 +50,13 @@ export async function getOrCreateTitleButtonContainer(forceTitleNode?: HTMLEleme if (!referenceNode.contains(titleButtonContainer)) { referenceNode.appendChild(titleButtonContainer); - // Buttons on right - referenceNode.style.display = "flex"; - referenceNode.style.justifyContent = "space-between"; - referenceNode.style.alignItems = "flex-start"; + // Not for vorapis v3 + if (!referenceNode.classList.contains("yt-uix-button-panel")) { + // Buttons on right + referenceNode.style.display = "flex"; + referenceNode.style.justifyContent = "space-between"; + referenceNode.style.alignItems = "flex-start"; + } const header = referenceNode.querySelector("h1"); if (header) {