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:
@@ -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});
|
||||
});
|
||||
|
Reference in New Issue
Block a user