mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue with hiding/showing the last video on resize
This commit is contained in:
@@ -54,6 +54,7 @@
|
||||
align-items: center;
|
||||
flex-shrink: initial;
|
||||
justify-content: space-between;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
#pageButtons, #pageButtons a{
|
||||
@@ -1619,7 +1620,7 @@ nav ul li:hover, nav ul li.active {
|
||||
}
|
||||
|
||||
.tabs_height{
|
||||
height:calc(100vh - 48px - 64px - 36px) !important;
|
||||
height:calc(100vh - 48px - 64px - 32px) !important;
|
||||
overflow:auto;
|
||||
}
|
||||
|
||||
|
||||
4
public/dist/embed.min.js
vendored
4
public/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
8
public/dist/main.min.js
vendored
8
public/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -94,7 +94,7 @@ var List = {
|
||||
{
|
||||
if(!Helper.mobilecheck() && !embed){
|
||||
List.can_fit = Math.round(($("#wrapper").height()) / 71)+1;
|
||||
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
|
||||
List.element_height = (($("#wrapper").height()) / List.can_fit)-5.3;
|
||||
} else if(embed) {
|
||||
List.can_fit = Math.round(($("#wrapper").height()) / 91) + 1;
|
||||
List.element_height = (($("#wrapper").height()) / List.can_fit)-4;
|
||||
|
||||
@@ -1172,8 +1172,16 @@ $(window).resize(function(){
|
||||
if(temp_fit > List.can_fit || temp_fit < List.can_fit){
|
||||
List.dynamicContentPage(-10);
|
||||
}
|
||||
if(List.can_fit < temp_fit){
|
||||
console.log("1");
|
||||
$($("#wrapper").children()[List.page + temp_fit - 1]).css("display", "block");
|
||||
} else if(List.can_fit > temp_fit){
|
||||
console.log("2");
|
||||
$($("#wrapper").children()[List.page + temp_fit]).css("display", "none");
|
||||
}
|
||||
List.can_fit = temp_fit;
|
||||
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
|
||||
List.element_height = (($("#wrapper").height()) / List.can_fit)-5.3;
|
||||
console.log(List.page);
|
||||
$(".list-song").css("height", List.element_height + "px");
|
||||
$("#player_overlay").width($("#player").width()+1);
|
||||
set_title_width();
|
||||
@@ -1253,7 +1261,7 @@ $(document).on("click", "#player_bottom_overlay", function(){
|
||||
Frontpage.to_channel(chan.toLowerCase(), false);
|
||||
});
|
||||
|
||||
$(document).on("mousemove", "#playlist", function(e)
|
||||
/*$(document).on("mousemove", "#playlist", function(e)
|
||||
{
|
||||
var y = e.pageY - this.offsetTop;
|
||||
if(((y <= 80 && y >= 48)) && $("#wrapper").scrollTop() > 0){
|
||||
@@ -1279,7 +1287,7 @@ $(document).on("click", "#top-button", function(){
|
||||
|
||||
$(document).on("click", "#bottom-button", function(){
|
||||
List.scrollBottom();
|
||||
});
|
||||
});*/
|
||||
|
||||
|
||||
$(document).keydown(function(event) {
|
||||
|
||||
@@ -195,9 +195,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="playlist" class="col s12 m3">
|
||||
<div id="top-button" title="Scroll to the top" class="rounded-bottom hide top-button-with-tabs hide-on-small-only">Top</div>
|
||||
<!--<div id="top-button" title="Scroll to the top" class="rounded-bottom hide top-button-with-tabs hide-on-small-only">Top</div>
|
||||
<div id="bottom-button" title="Scroll to the bottom" class="rounded-top hide hide-on-small-only">Bottom</div>
|
||||
<ul class="tabs playlist-tabs tabs-fixed-width" style="width:96%">
|
||||
--><ul class="tabs playlist-tabs tabs-fixed-width" style="width:96%">
|
||||
<li class="tab col s3"><a class="playlist-tab-links playlist-link active truncate" href="#wrapper">Playlist</a></li>
|
||||
<li class="tab col s3"><a class="playlist-tab-links chat-link truncate" href="#chat">Chat<span class="new badge white hide"></span></a></li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user