From d86cff7f61af51ee2bd9df9df309576b11d7ecc6 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 14 Feb 2017 13:29:44 +0545 Subject: Allow 5 dashboard columns to work Selecting 1,2,3,4 or 6 dashboards columns results in an exact integer result here and all is good. But 5 columns results in "2.4" and "col-sm-2.4" is not a thing in bootstrap. We need just the best int we can choose here, which is one that is just the int part of the division. That ensures that the 5 columns extend over less than the standard bootstrap total of 12 "units" wide. --- src/usr/local/www/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usr') diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index ab41a4b..c751af4 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -359,7 +359,7 @@ foreach ($widgets as $widgetname => $widgetconfig) {