mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Small screen support small playlist-elements better
This commit is contained in:
@@ -47,6 +47,7 @@ function resizeFunction() {
|
|||||||
document.querySelector("#all_chat").style.height = "";
|
document.querySelector("#all_chat").style.height = "";
|
||||||
document.querySelector("#chat-container").style.height = "";
|
document.querySelector("#chat-container").style.height = "";
|
||||||
} else if(window.innerWidth < 601) {
|
} else if(window.innerWidth < 601) {
|
||||||
|
console.log("this");
|
||||||
if(!client && !embed) {
|
if(!client && !embed) {
|
||||||
var scPlaying = false;
|
var scPlaying = false;
|
||||||
var ytPlaying = false;
|
var ytPlaying = false;
|
||||||
@@ -85,7 +86,7 @@ function resizeFunction() {
|
|||||||
temp_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71)+1;
|
temp_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71)+1;
|
||||||
List.element_height = (Helper.computedStyle("#wrapper", "height") / temp_fit)-5.3;
|
List.element_height = (Helper.computedStyle("#wrapper", "height") / temp_fit)-5.3;
|
||||||
}
|
}
|
||||||
if(List.element_height < 55.2 && !client){
|
if(List.element_height < 55.2 && !client && !embed){
|
||||||
temp_fit = temp_fit - 1;
|
temp_fit = temp_fit - 1;
|
||||||
List.element_height = 55.2;
|
List.element_height = 55.2;
|
||||||
temp_fit = Math.round((window.innerHeight - Helper.computedStyle(".tabs", "height") - Helper.computedStyle("header", "height") - 64 - 40) / 71);
|
temp_fit = Math.round((window.innerHeight - Helper.computedStyle(".tabs", "height") - Helper.computedStyle("header", "height") - 64 - 40) / 71);
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ var List = {
|
|||||||
List.can_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71)+1;
|
List.can_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71)+1;
|
||||||
List.element_height = (Helper.computedStyle("#wrapper", "height") / List.can_fit)-5.3;
|
List.element_height = (Helper.computedStyle("#wrapper", "height") / List.can_fit)-5.3;
|
||||||
}
|
}
|
||||||
if(List.element_height < 55.2 && !client){
|
if(List.element_height < 55.2 && !client && !embed){
|
||||||
List.can_fit = List.can_fit - 1;
|
List.can_fit = List.can_fit - 1;
|
||||||
List.element_height = 55.2;
|
List.element_height = 55.2;
|
||||||
List.can_fit = Math.round((window.innerHeight - Helper.computedStyle(".tabs", "height") - Helper.computedStyle("header", "height") - 64 - 40) / 71);
|
List.can_fit = Math.round((window.innerHeight - Helper.computedStyle(".tabs", "height") - Helper.computedStyle("header", "height") - 64 - 40) / 71);
|
||||||
|
|||||||
Reference in New Issue
Block a user