Enable horizontal scrolling for perfdata table

Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>

fixes #11766
This commit is contained in:
Florian Strohmaier 2016-12-05 16:35:23 +01:00 committed by Eric Lippmann
parent 5661dfa63c
commit 9bff4dd83b
2 changed files with 9 additions and 2 deletions

View File

@ -81,7 +81,7 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
$data []= sprintf(
'<span title="%s">%s</span>',
$text,
StringHelper::ellipsisCenter($text, 24)
$text
);
}
}

View File

@ -108,7 +108,9 @@
// Table for performance data in detail views
.performance-data-table {
width: 100%;
display: block;
overflow-x: auto;
position: relative;
> thead > tr > th {
text-align: left;
@ -119,6 +121,11 @@
// Reset base padding
padding-left: 0;
}
> thead > tr > th,
> tbody > tr > td {
white-space: nowrap;
}
}
// Performance data table column for sparkline pie charts in detail views