diff --git a/front/devices.php b/front/devices.php index 5c28a75b..cc730aa7 100755 --- a/front/devices.php +++ b/front/devices.php @@ -53,7 +53,12 @@
-

+

+
+ +
@@ -72,10 +77,15 @@ @@ -148,6 +158,20 @@ // DEVICE_COLUMN_FIELDS, COL, NUMERIC_DEFAULTS, GRAPHQL_EXTRA_FIELDS, COLUMN_NAME_MAP // are all defined in js/device-columns.js — edit that file to add new columns. + // Collapse DevicePresence and Filters sections by default on small/mobile screens + (function collapseOnMobile() { + if (window.innerWidth < 768) { + ['#clients', '#columnFiltersWrap'].forEach(function(sel) { + var $box = $(sel); + if ($box.length) { + $box.addClass('collapsed-box'); + $box.find('.box-body, .box-footer').hide(); + $box.find('[data-widget="collapse"] i').removeClass('fa-minus').addClass('fa-plus'); + } + }); + } + })(); + // Read parameters & Initialize components callAfterAppInitialized(main) showSpinner();