Skip to content

Commit

Permalink
fix:(nimsandu#332) : update theme.js
Browse files Browse the repository at this point in the history
Solution from nimsandu#337
Commented it out
  • Loading branch information
sanoojes committed Apr 24, 2024
1 parent 66dac67 commit db919ce
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/theme.js
Expand Up @@ -450,17 +450,17 @@
});
}

function moveTopBarContainer(to) {
waitForElements(
['.main-topBar-container', '.Root__main-view'],
([topBarContainer, rootMainView]) => {
rootMainView.insertAdjacentElement(
to === 'up' ? 'beforebegin' : 'afterbegin',
topBarContainer
);
}
);
}
// function moveTopBarContainer(to) {
// waitForElements(
// ['.main-topBar-container', '.Root__main-view'],
// ([topBarContainer, rootMainView]) => {
// rootMainView.insertAdjacentElement(
// to === 'up' ? 'beforebegin' : 'afterbegin',
// topBarContainer
// );
// }
// );
// }

function addPlayerBackground() {
waitForElements(['.main-nowPlayingBar-nowPlayingBar'], ([nowPlayingBar]) => {
Expand Down Expand Up @@ -504,11 +504,9 @@
const isLyricsCinemaVisible = lyricsCinema?.className.includes('lyricsCinemaVisible');

if (isLyricsPage || isLyricsCinemaVisible) {
if (isLyricsCinemaVisible) moveTopBarContainer('up');
if (!lyricsBackdropContainer) {
initLyricsBackdrop();
} else {
lyricsBackdropContainer.style.display = 'unset';
updateLyricsPageProperties();
}
} else {
Expand Down Expand Up @@ -589,4 +587,4 @@
bodyObserver.observe(body, bodyObserverConfig);
keepNoiseOpacity();
});
})();
})();

0 comments on commit db919ce

Please sign in to comment.