Skip to content

Commit

Permalink
Adjust CSS for inlinePies to be centered on the current line
Browse files Browse the repository at this point in the history
  • Loading branch information
majentsch committed Aug 28, 2014
1 parent a26370b commit 3642b7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/Icinga/Web/Widget/Chart/InlinePie.php
Expand Up @@ -50,7 +50,7 @@ class="sparkline"
sparkType="pie"></span>
<noscript>
<img class="inlinepie"
title="{title}" src="{url}" style="width: {width}px; height: {height}px; {style}"
title="{title}" src="{url}" style="position: relative; top: 10px; width: {width}px; height: {height}px; {style}"
data-icinga-colors="{colors}" data-icinga-values="{data}"
/>
</noscript>
Expand Down
2 changes: 1 addition & 1 deletion modules/monitoring/application/views/helpers/Perfdata.php
Expand Up @@ -34,7 +34,7 @@ public function perfdata($perfdataStr, $compact = false, $float = false)
// TODO: Should we trust sprintf-style placeholders in perfdata titles?
$pieChart->setTooltipFormat('{{label}}: {{formatted}} ({{percent}}%)');
}
$pieChart->setStyle('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($perfdata->getLabel())
. '</th><td> '
Expand Down

0 comments on commit 3642b7b

Please sign in to comment.