From ba26f34191bba30eb41a10c4e59c9f7cc2e5f69d Mon Sep 17 00:00:00 2001 From: "Jokob @NetAlertX" <96159884+jokob-sk@users.noreply.github.com> Date: Tue, 3 Mar 2026 21:40:19 +0000 Subject: [PATCH] Enhance device section UI with collapsible filters and default collapse on mobile --- front/devices.php | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) 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();