Search from service mode no longer strands the user on the home screen
In service mode's Video view the overlay lives inside the player pane, which the home-over rule hid, while service mode kept the bottom bar and mini bar hidden. Going home now leaves service mode first, and the rule spares the service overlay.
This commit is contained in:
@@ -7056,6 +7056,9 @@ function setHomeOverPlayer(on) {
|
||||
const pane = els.playerPane;
|
||||
if (!pane) return;
|
||||
on = !!on && !!(current && current.meta);
|
||||
// Service mode hides the bottom bar and mini bar (and, in its Video view,
|
||||
// lives inside this pane): leave it first or the home screen is a dead end.
|
||||
if (on && isServiceModeOpen()) exitServiceMode();
|
||||
if (pane.classList.contains('home-over') === on) return;
|
||||
pane.classList.toggle('home-over', on);
|
||||
pane.classList.toggle('empty', on);
|
||||
|
||||
@@ -4286,4 +4286,4 @@ body.landscape-fs .player-stage { touch-action: none; } /* fullscreen (real or t
|
||||
.player-pane.home-over #stageLyrics,
|
||||
.player-pane.home-over #artFallback { visibility: hidden; }
|
||||
.player-pane.home-over .related-panel { display: none; }
|
||||
.player-pane.home-over > :not(.player-stage) { display: none !important; }
|
||||
.player-pane.home-over > :not(.player-stage):not(#serviceMode) { display: none !important; }
|
||||
|
||||
Reference in New Issue
Block a user