Fix word wrapping in perfdata labels and values

fixes #6377
This commit is contained in:
Johannes Meyer 2014-07-10 14:54:12 +02:00
parent 3c9d2b0c9f
commit 53f3d74103
2 changed files with 5 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
if (! $perfdata->isPercentage()) {
$pieChart->setTooltipFormat('{{label}}: {{formatted}} ({{percent}}%)');
}
$pieChart->setStyle('float: left; margin: 0.2em 0.5em 0.2em 0.5em;');
$pieChart->setStyle('margin: 0.2em 0.5em 0.2em 0.5em;');
$table[] = '<tr><th>' . $pieChart->render()
. htmlspecialchars($label)
. '</th><td> '

View File

@ -144,12 +144,15 @@ table.perfdata {
}
table.perfdata th {
white-space: nowrap;
padding: 0;
text-align: left;
padding-right: 0.5em;
}
table.perfdata td {
white-space: nowrap;
}
table.objectlist {
min-width: 28em;
th {