From 36d076c22889d7b417b0a8d27430c1c028aaf8a7 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Thu, 10 Nov 2016 11:44:47 +0100 Subject: [PATCH] Hide horizontal scroll when not in use --- src/scripts/tutti/00_utils.js | 2 +- src/styles/_app_base.sass | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/tutti/00_utils.js b/src/scripts/tutti/00_utils.js index 8c0eaf2..5fb2b19 100644 --- a/src/scripts/tutti/00_utils.js +++ b/src/scripts/tutti/00_utils.js @@ -134,7 +134,7 @@ $('#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 + var window_height = $(this).height() - 40; // header is 40px // TODO: Make item-details a popup for easier browsing if ($(this).width() < 768){ diff --git a/src/styles/_app_base.sass b/src/styles/_app_base.sass index a582f98..5213667 100644 --- a/src/styles/_app_base.sass +++ b/src/styles/_app_base.sass @@ -55,7 +55,7 @@ body /* Attract specific table tweaks */ .item-list - overflow-x: scroll + overflow-x: auto .table background-color: white .table-row:hover