Skip to content

Commit

Permalink
Fix breaking UI with vorapis v3 installed
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Dec 23, 2024
1 parent 9cca21f commit f07750d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/utils/titleBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f07750d

Please # to comment.