From 828f06ea13d5e3bab0ae733a4dbef7fde26b31ee Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Mon, 20 Jan 2025 14:44:40 +0100 Subject: [PATCH] RedundancyGroup: Don't wrap state msg into `span` This msg should be handled same as the host word, no element wrapping. This way, the margin arround the msg is applied properly. --- library/Icingadb/Widget/Detail/RedundancyGroupHeader.php | 2 +- library/Icingadb/Widget/ItemList/RedundancyGroupListItem.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icingadb/Widget/Detail/RedundancyGroupHeader.php b/library/Icingadb/Widget/Detail/RedundancyGroupHeader.php index d98c7b0f5..6e4cd23bd 100644 --- a/library/Icingadb/Widget/Detail/RedundancyGroupHeader.php +++ b/library/Icingadb/Widget/Detail/RedundancyGroupHeader.php @@ -44,7 +44,7 @@ protected function assembleTitle(BaseHtmlElement $title): void $text = $this->translate('has working objects'); } - $title->addHtml(HtmlElement::create('span', null, Text::create($text))); + $title->addHtml(Text::create($text)); } protected function createStatistics(): BaseHtmlElement diff --git a/library/Icingadb/Widget/ItemList/RedundancyGroupListItem.php b/library/Icingadb/Widget/ItemList/RedundancyGroupListItem.php index 7b56f5cac..a4c2c30ea 100644 --- a/library/Icingadb/Widget/ItemList/RedundancyGroupListItem.php +++ b/library/Icingadb/Widget/ItemList/RedundancyGroupListItem.php @@ -87,7 +87,7 @@ protected function assembleTitle(BaseHtmlElement $title): void $text = $this->translate('has working objects'); } - $title->addHtml(HtmlElement::create('span', null, Text::create($text))); + $title->addHtml(Text::create($text)); } protected function assemble(): void