Fixed embedded player a bit

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-30 17:30:22 +01:00
parent 3cd0018a2d
commit 3e68196cf1
4 changed files with 17 additions and 8 deletions

View File

@@ -17,6 +17,7 @@
#pageButtons{
text-align: center;
padding-top:10px;
}
#pageButtons, #pageButtons a{
@@ -27,6 +28,10 @@
cursor: pointer;
}
#wrapper{
height:calc(100% - 56px);
}
.prev_page_hide, .next_page_hide{
visibility: visible !important;
color:gray;
@@ -137,7 +142,7 @@
background-color:grey;
height:100vh;
width:50vw;
overflow-y:scroll;
overflow:hidden;
}
#zoffbutton{

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -79,9 +79,13 @@ var List = {
populate_list: function(msg)
{
if(!Helper.mobilecheck()){
if(!Helper.mobilecheck() && !embed){
List.can_fit = Math.round(($("#wrapper").height()) / 71)+1;
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
} else if(embed) {
List.can_fit = Math.round(($("#wrapper").height()) / 91) + 1;
List.element_height = (($("#wrapper").height()) / List.can_fit)-4;
console.log("anal")
}else {
List.can_fit = Math.round(($(window).height() - $(".tabs").height() - $("header").height() -66) / 71)+1;
List.element_height = (($(window).height() - $(".tabs").height() - $("header").height() -66) / List.can_fit)-6;