From 4086a63ebde907d2e17d9367cd0c78af588f4df7 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 4 Jul 2021 15:34:39 +0200 Subject: [PATCH] Improved tables horizontally scrollbar appearance (fixes #1476) --- public/js/grocy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/grocy.js b/public/js/grocy.js index 2e15bda9..9c1a4c7c 100644 --- a/public/js/grocy.js +++ b/public/js/grocy.js @@ -896,7 +896,7 @@ $('.dropdown-item').has('.form-check input[type=checkbox]').on('click', function $('.table').on('column-sizing.dt', function(e, settings) { var dtScrollWidth = $('.dataTables_scroll').width(); - var tableWidth = $('.table').width(); + var tableWidth = $('.table').width() + 100; // Some extra padding, otherwise the scrollbar maybe only appears after a column is already completely out of the viewport if (dtScrollWidth < tableWidth) {