From 2081459556a5edc1a67ea0f6ca01fd6a47a1ac96 Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Wed, 22 Feb 2023 13:08:15 +0100 Subject: [PATCH] 10454-Fix event view --- pandora_console/include/styles/events.css | 21 +++++++++++++++---- pandora_console/operation/events/events.php | 23 +++++++++++---------- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/pandora_console/include/styles/events.css b/pandora_console/include/styles/events.css index dc1f7415b7..12502a5cc7 100644 --- a/pandora_console/include/styles/events.css +++ b/pandora_console/include/styles/events.css @@ -1,11 +1,11 @@ div.criticity { - width: 150px; - height: 2em; + width: 100px; + height: 15px; color: #fff; text-align: center; border-radius: 5px; - font-size: 0.8em; - padding: 5px; + font-size: 0.7em; + padding: 2px; margin: 0; display: table-cell; vertical-align: middle; @@ -82,6 +82,19 @@ table.dataTable tbody td { padding: 8px 10px; } +th:last-child { + padding-top: 0px !important; + padding-bottom: 0px !important; +} + +td { + padding: 0px !important; +} + +td > input[id^="checkbox-multi"] { + margin: 0px !important; +} + .info_table.events tr > th { padding-left: 1em; font-size: 8pt; diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 009b0dd4bd..829ba01044 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -626,8 +626,8 @@ if (is_ajax() === true) { $tmp->mini_severity .= $output; $tmp->mini_severity .= ''; - $criticity = '
'.$text.'
'; + $criticity = '
'.$text.'
'; $tmp->criticity = $criticity; // Add event severity to end of text. @@ -695,8 +695,8 @@ if (is_ajax() === true) { break; } - $event_type = '
'.$text.'
'; + $event_type = '
 
'; $tmp->event_type = $event_type; // Module status. @@ -735,8 +735,8 @@ if (is_ajax() === true) { break; } - $module_status = '
'.$text.'
'; + $module_status = '
 
'; $tmp->module_status = $module_status; // Status. @@ -772,7 +772,7 @@ if (is_ajax() === true) { true, [ 'title' => __('Event in process'), - 'class' => 'forced-title invert_filter', + 'class' => 'forced-title invert_filter height_20px', ] ); break; @@ -790,7 +790,7 @@ if (is_ajax() === true) { break; } - $draw_state = '
'; + $draw_state = '
'; $draw_state .= ''; @@ -1812,7 +1812,7 @@ $in .= '
'; $inputs[] = $in; // Trick view in table. -$inputs[] = '
'; +$inputs[] = '
'; $buttons = []; @@ -2211,7 +2211,8 @@ $filter .= ui_toggle( true, true, 'white_box white_box_opened', - 'no-border flex-row' + 'no-border flex-row', + 'box-flat white_table_graph w100p' ); try { @@ -2394,7 +2395,7 @@ try { [ 'id' => $table_id, 'class' => 'info_table events', - 'style' => 'width: 100%;', + 'style' => 'width: 99%;', 'ajax_url' => 'operation/events/events', 'ajax_data' => [ 'get_events' => 1,