Skip to content

Commit 828f06e

Browse files
RedundancyGroup: Don't wrap state msg into span
This msg should be handled same as the host <is/on> word, no element wrapping. This way, the margin arround the msg is applied properly.
1 parent 9eea87d commit 828f06e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: library/Icingadb/Widget/Detail/RedundancyGroupHeader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function assembleTitle(BaseHtmlElement $title): void
4444
$text = $this->translate('has working objects');
4545
}
4646

47-
$title->addHtml(HtmlElement::create('span', null, Text::create($text)));
47+
$title->addHtml(Text::create($text));
4848
}
4949

5050
protected function createStatistics(): BaseHtmlElement

Diff for: library/Icingadb/Widget/ItemList/RedundancyGroupListItem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function assembleTitle(BaseHtmlElement $title): void
8787
$text = $this->translate('has working objects');
8888
}
8989

90-
$title->addHtml(HtmlElement::create('span', null, Text::create($text)));
90+
$title->addHtml(Text::create($text));
9191
}
9292

9393
protected function assemble(): void

0 commit comments

Comments
 (0)