From 2ffabe3d4af6b77d771e406f41c12cfa85ccaca0 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 4 Sep 2017 14:30:25 +0200 Subject: [PATCH] /list/hosts: use all available container width Hosts don't have more than one graph. refs #27 --- application/views/scripts/list/hosts.phtml | 4 ++++ public/css/module.less | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/application/views/scripts/list/hosts.phtml b/application/views/scripts/list/hosts.phtml index a9aed43..fb664ea 100644 --- a/application/views/scripts/list/hosts.phtml +++ b/application/views/scripts/list/hosts.phtml @@ -24,6 +24,8 @@ if ($filterEditor->getFilter()->isEmpty()) { echo '

' . $this->escape($this->translate('Please specify a filter')) . '

'; } elseif ($hosts->hasResult()) { foreach ($hosts->peekAhead($compact) as $host) { + echo '
'; + if (! $compact) { echo '

' . $this->qlink( @@ -37,6 +39,8 @@ if ($filterEditor->getFilter()->isEmpty()) { . '

'; } echo EmbedGraphs::host($host->host_name); + + echo '
'; } if (! $compact && $hosts->hasMore()) { diff --git a/public/css/module.less b/public/css/module.less index 3d73af0..37d4399 100644 --- a/public/css/module.less +++ b/public/css/module.less @@ -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; + } +}