/list/hosts: use all available container width

Hosts don't have more than one graph.

refs #27
This commit is contained in:
Alexander A. Klimov 2017-09-04 14:30:25 +02:00
parent a725de8719
commit 2ffabe3d4a
2 changed files with 14 additions and 0 deletions

View file

@ -24,6 +24,8 @@ if ($filterEditor->getFilter()->isEmpty()) {
echo '<p>' . $this->escape($this->translate('Please specify a filter')) . '</p>';
} elseif ($hosts->hasResult()) {
foreach ($hosts->peekAhead($compact) as $host) {
echo '<div class="graphs-host">';
if (! $compact) {
echo '<h2>'
. $this->qlink(
@ -37,6 +39,8 @@ if ($filterEditor->getFilter()->isEmpty()) {
. '</h2>';
}
echo EmbedGraphs::host($host->host_name);
echo '</div>';
}
if (! $compact && $hosts->hasMore()) {

View file

@ -49,3 +49,13 @@ ul.legend {
}
}
}
div.graphs-host {
display: inline-block;
vertical-align: top;
margin-right: 2em;
> div.container[data-icinga-url] {
width: 300px;
}
}