diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index e8af8363e4..8b05a2feda 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -634,6 +634,12 @@ select:-internal-list-box { white-space: nowrap; } +.nowrap_max180px { + width: 10px; + max-width: 180px; + white-space: nowrap; +} + .wrap { flex-wrap: wrap; } diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 39fb22660d..b7f4041e0e 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -2393,6 +2393,14 @@ try { ]; } + $comment_id = array_search('user_comment', $fields); + if ($comment_id !== false) { + $fields[$comment_id] = [ + 'text' => 'user_comment', + 'class' => 'nowrap_max180px', + ]; + } + // Always add options column. $fields = array_merge( $fields,