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()) { if (! $perfdata->isPercentage()) {
$pieChart->setTooltipFormat('{{label}}: {{formatted}} ({{percent}}%)'); $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() $table[] = '<tr><th>' . $pieChart->render()
. htmlspecialchars($label) . htmlspecialchars($label)
. '</th><td> ' . '</th><td> '

View File

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