Changed so accordion for intelligent-playlist is not hidden on small player on desktops

This commit is contained in:
Kasper Rynning-Tønnesen
2018-10-29 14:29:41 +01:00
parent 6443974c7a
commit 73cec39de0
2 changed files with 6 additions and 5 deletions

View File

@@ -34,10 +34,10 @@ var Channel = {
if(cast_ready_connect || chromecastAvailable || chromecastReady) { if(cast_ready_connect || chromecastAvailable || chromecastReady) {
Helper.addClass(".volume-container", "volume-container-cast"); Helper.addClass(".volume-container", "volume-container-cast");
} }
if(!embed) { if(!embed) {
document.querySelector("#main-container").insertAdjacentHTML("beforeend", "<a id='hide-playlist' class='hide-on-small-only hide-playlist-button' href='#!'><i class='material-icons'>keyboard_arrow_right</i></div>"); document.querySelector("#main-container").insertAdjacentHTML("beforeend", "<a id='hide-playlist' class='hide-on-small-only hide-playlist-button' href='#!'><i class='material-icons'>keyboard_arrow_right</i></div>");
document.querySelector("#hide-playlist").style.left = (document.querySelector("#video-container").offsetWidth - document.querySelector("#hide-playlist").offsetWidth) + "px"; document.querySelector("#hide-playlist").style.left = (document.querySelector("#video-container").offsetWidth - document.querySelector("#hide-playlist").offsetWidth) + "px";
} }
//Player.soundcloud_player = document.querySelector("#soundcloud_player"); //Player.soundcloud_player = document.querySelector("#soundcloud_player");
} }
List.calculate_song_heights(); List.calculate_song_heights();
@@ -179,6 +179,7 @@ var Channel = {
} }
if(!Helper.mobilecheck() && (document.querySelectorAll("#alreadychannel").length === 0 || !Hostcontroller.old_id || document.getElementById("code-text").innerText.toUpperCase() == "ABBADUR")) setup_host_initialization(); if(!Helper.mobilecheck() && (document.querySelectorAll("#alreadychannel").length === 0 || !Hostcontroller.old_id || document.getElementById("code-text").innerText.toUpperCase() == "ABBADUR")) setup_host_initialization();
setup_suggested_listener(); setup_suggested_listener();
if(!Helper.mobilecheck()) Helper.removeClass(".intelligent-accordion", "hide-on-small-only");
if(document.querySelectorAll("#alreadychannel").length === 0 || Helper.mobilecheck()){ if(document.querySelectorAll("#alreadychannel").length === 0 || Helper.mobilecheck()){
setup_now_playing_listener(); setup_now_playing_listener();
get_list_listener(); get_list_listener();

View File

@@ -25,7 +25,7 @@
</ul> </ul>
</div> </div>
</li> </li>
<li class="no-padding hide-on-small-only"> <li class="no-padding hide-on-small-only intelligent-accordion">
<div class="collapsible-header bold waves-effect">Intelligent Playlist <div class="collapsible-header bold waves-effect">Intelligent Playlist
<i class="material-icons">sentiment_satisfied_alt</i> <i class="material-icons">sentiment_satisfied_alt</i>
</div> </div>