diff --git a/pandora_console/include/styles/events.css b/pandora_console/include/styles/events.css index 78286c79f9..8bcdd7187f 100644 --- a/pandora_console/include/styles/events.css +++ b/pandora_console/include/styles/events.css @@ -109,21 +109,13 @@ td > input[id^="checkbox-multi"] { } .info_table.events tr > td span:not(.invisible) { - display: block; + display: inline-block; overflow: hidden; text-overflow: ellipsis; max-height: 6em; line-height: 2em; } -.info_table.events tr > td span:not(.invisible) { - display: block; - overflow: hidden; - text-overflow: ellipsis; - max-height: 6em; - line-height: 1.5em; -} - th.column-estado { padding: 0px 0px 0px 12px !important; max-width: fit-content; diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 6d969481a3..4365ff6594 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -523,17 +523,6 @@ if (is_ajax() === true) { $tmp->b64 = base64_encode(json_encode($tmp)); $tmp->evento = $output_event_name; - $tmp->evento = ui_print_truncate_text( - $tmp->evento, - (empty($compact_name_event) === true) ? 'description' : GENERIC_SIZE_TEXT, - false, - true, - false, - '…', - true, - true, - ); - if (empty($tmp->module_name) === false) { $tmp->module_name = ui_print_truncate_text( $tmp->module_name, @@ -771,18 +760,31 @@ if (is_ajax() === true) { $evn = ''; } + $number = ''; // Grouped events. if ((int) $filter['group_rep'] === EVENT_GROUP_REP_EXTRAIDS) { $counter_extra_id = event_get_counter_extraId($item, $filter); if (empty($counter_extra_id) === false && $counter_extra_id > 1) { - $evn .= '('.$counter_extra_id.') '; + $number = '('.$counter_extra_id.') '; } } else { if (isset($tmp->event_rep) === true && $tmp->event_rep > 1) { - $evn .= '('.$tmp->event_rep.') '; + $number = '('.$tmp->event_rep.') '; } } + $tmp->evento = $number.$tmp->evento; + $tmp->evento = ui_print_truncate_text( + $tmp->evento, + (empty($compact_name_event) === true) ? 'description' : GENERIC_SIZE_TEXT, + false, + true, + false, + '…', + true, + true, + ); + $evn .= $tmp->evento.''; // Add event severity format to itself.