Skip to content

Commit

Permalink
Fix list-item footer
Browse files Browse the repository at this point in the history
- Don't apply padding-top to all `footer` childrens
  • Loading branch information
sukhwinder33445 authored and nilmerg committed Jul 19, 2023
1 parent e4a042f commit 25d1dda
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions library/Icingadb/Widget/ItemList/HostListItemDetailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ protected function assembleFooter(BaseHtmlElement $footer)
}
}

if (!empty($statusIcons->getContent())) {
if (! $statusIcons->isEmpty()) {
$footer->addHtml($statusIcons);
}

if (!empty($performanceData->getContent())) {
if (! $performanceData->isEmpty()) {
$footer->addHtml($performanceData);
}
}
Expand Down
4 changes: 2 additions & 2 deletions library/Icingadb/Widget/ItemList/ServiceListItemDetailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ protected function assembleFooter(BaseHtmlElement $footer)
}
}

if (!empty($statusIcons->getContent())) {
if (! $statusIcons->isEmpty()) {
$footer->addHtml($statusIcons);
}

if (!empty($performanceData->getContent())) {
if (! $performanceData->isEmpty()) {
$footer->addHtml($performanceData);
}
}
Expand Down
2 changes: 1 addition & 1 deletion public/css/list/list-item.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}

footer {
:not(:empty) {
&:not(:empty) {
padding-top: .5em;
}

Expand Down

0 comments on commit 25d1dda

Please sign in to comment.