Skip to content

Commit

Permalink
fix:(nimsandu#332) : search bar unfocus issue
Browse files Browse the repository at this point in the history
Solution from nimsandu#337
  • Loading branch information
sanoojes committed Apr 26, 2024
1 parent 66dac67 commit 2e568bb
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/theme.js
Expand Up @@ -450,18 +450,6 @@
});
}

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]) => {
const playerBackground = document.createElement('div');
Expand Down Expand Up @@ -508,11 +496,10 @@
if (!lyricsBackdropContainer) {
initLyricsBackdrop();
} else {
lyricsBackdropContainer.style.display = 'unset';
lyricsBackdropContainer.style.display = 'block';
updateLyricsPageProperties();
}
} else {
if (lyricsCinema && !isLyricsCinemaVisible) moveTopBarContainer('down');
if (lyricsBackdropContainer) lyricsBackdropContainer.style.display = 'none';
}
}
Expand Down

0 comments on commit 2e568bb

Please sign in to comment.