Quick fix: If we're in mobile, set height of columns to half window height

TODO: Make item-details a popup for easier browsing
This commit is contained in:
2016-11-10 11:24:36 +01:00
parent 6ebf3b6493
commit 3917c90a13

View File

@@ -135,5 +135,11 @@ $('#modal').on('hidden.bs.modal', function () {
// Set height of shot-list and item details so we can scroll inside them
$(window).on('load resize', function(){
var window_height = $(this).height() - 50; // header is 50px
// TODO: Make item-details a popup for easier browsing
if ($(this).width() < 768){
window_height = window_height / 2
}
$('.col-scrollable').css({'height': window_height});
});