From 3917c90a134c5a942d62b2bf33ae9c0657dc85a7 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Thu, 10 Nov 2016 11:24:36 +0100 Subject: [PATCH] Quick fix: If we're in mobile, set height of columns to half window height TODO: Make item-details a popup for easier browsing --- src/scripts/tutti/00_utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scripts/tutti/00_utils.js b/src/scripts/tutti/00_utils.js index ce09930..8c0eaf2 100644 --- a/src/scripts/tutti/00_utils.js +++ b/src/scripts/tutti/00_utils.js @@ -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}); });