Fixed issue with soundcloud player not hiding on small device on pausing

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-27 13:18:05 +02:00
parent fe727c075f
commit 473dde44f1
2 changed files with 6 additions and 1 deletions

View File

@@ -3207,6 +3207,10 @@ nav ul li:hover, nav ul li.active {
display: block !important; display: block !important;
} }
.small-display-hide {
display: none !important;
}
.hide-on-small-only{ .hide-on-small-only{
display:none; display:none;
} }

View File

@@ -748,6 +748,7 @@ var Player = {
if(gotten_np) gotten_np = false; if(gotten_np) gotten_np = false;
if(window.location.pathname != "/") Playercontrols.play_pause_show(); if(window.location.pathname != "/") Playercontrols.play_pause_show();
mobile_beginning = true; mobile_beginning = true;
Helper.addClass("#player_overlay", "small-display-hide");
} }
Helper.removeClass("#play", "hide"); Helper.removeClass("#play", "hide");
Helper.addClass("#pause", "hide"); Helper.addClass("#pause", "hide");
@@ -799,7 +800,7 @@ var Player = {
resizePlaylistPlaying(scPlaying); resizePlaylistPlaying(scPlaying);
} }
} }
Helper.removeClass("#player_overlay", "small-display-hide");
Helper.css("#playpause", "visibility", "visible"); Helper.css("#playpause", "visibility", "visible");
Helper.css("#playpause", "pointer-events", "all"); Helper.css("#playpause", "pointer-events", "all");
playing = true; playing = true;