mirror of https://github.com/MISP/MISP
Small cosmetic fix
- fixed a cosmetic issue with 3+ digit ID numbers, an event info with wide characters can cause the pivot element to flow over into a second row.pull/195/head
parent
e25143ba59
commit
814fdba4ed
|
@ -7,8 +7,8 @@ App::uses('AppHelper', 'View/Helper');
|
|||
$data = null;
|
||||
$text = $pivot['id'] . ': ';
|
||||
$active = '';
|
||||
// Truncate string if longer than 10 chars to fit the pivot bubble
|
||||
if (strlen($pivot['info']) > 10) {
|
||||
// Truncate string if longer than (11 - length of event id) chars to fit the pivot bubble
|
||||
if (strlen($pivot['info']) > (11 - strlen((string)$pivot['id']))) {
|
||||
$text .= substr($pivot['info'], 0, 7) . '...';
|
||||
} else {
|
||||
$text .= $pivot['info'];
|
||||
|
|
Loading…
Reference in New Issue