From c34515549c1fc5a830ba4981025976d21e88bf20 Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Wed, 15 Nov 2023 11:23:10 +0100 Subject: [PATCH] #12456 fixed size of cards containing Agents hive information --- .../lib/Dashboard/Widgets/AgentHive.php | 26 +++++++++++++------ pandora_console/include/styles/dashboards.css | 4 +-- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/pandora_console/include/lib/Dashboard/Widgets/AgentHive.php b/pandora_console/include/lib/Dashboard/Widgets/AgentHive.php index 3b881ca344..c663670df1 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/AgentHive.php +++ b/pandora_console/include/lib/Dashboard/Widgets/AgentHive.php @@ -435,11 +435,17 @@ class AgentHive extends Widget $output .= html_print_div( [ 'content' => (empty($data['os_version']) === true) - ? get_os_name((int) $data['id_os']) - : $data['os_version'], - 'style' => 'font-size: 6pt; display: - flex;justify-content: start;align-items: start; - color: #9FA5B1; font-weight: 600;margin-bottom: 5px', + ? ui_print_truncate_text(get_os_name((int) $data['id_os'])) + : ui_print_truncate_text($data['os_version']), + 'style' => 'font-size: 6pt; + display: flex; + justify-content: start; + align-items: start; + color: #9FA5B1; + font-weight: 600; + margin: 5px; + float: right; + word-break: break-all;', ], true ); @@ -455,8 +461,10 @@ class AgentHive extends Widget true, '…', ), - 'style' => 'text-align: left;min-height: 42px; - font-size: 8pt;max-height: 42px; margin-bottom: 10px', + 'style' => 'text-align: left; + min-height: 42px; font-size: 8pt; + max-height: 42px; + margin: 2px 0px 2px 0px', ], true ); @@ -466,7 +474,9 @@ class AgentHive extends Widget [ 'content' => $data['direccion'], 'style' => 'font-size: 10pt;color: #14524f; - font-weight: 600; text-align: left', + font-weight: 600; + text-align: left; + margin-top: 5px', ], true ); diff --git a/pandora_console/include/styles/dashboards.css b/pandora_console/include/styles/dashboards.css index 818e523316..1e048bab85 100644 --- a/pandora_console/include/styles/dashboards.css +++ b/pandora_console/include/styles/dashboards.css @@ -663,9 +663,9 @@ form.modal-dashboard justify-content: center; align-items: start; min-width: 150px; - max-width: 150px; + max-width: 200px; min-height: 150px; - max-height: 150px; + max-height: 200px; margin: 8px; padding: 5px; border: 1px solid #eceef2;