Skip to content

Commit

Permalink
Merge pull request #87 from Icinga/message-styles
Browse files Browse the repository at this point in the history
Message styles
  • Loading branch information
lippserd authored Sep 26, 2024
2 parents 2953fca + 5efff49 commit e54e27a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions library/Kubernetes/Web/Conditions.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ protected function assemble(): void
if (! empty($message)) {
$caption = new HtmlElement(
'section',
new Attributes(['class' => 'caption']),
new Text($message)
null,
new IcingaStateReason($message)
);
$main->addHtml($caption);
}
Expand Down
2 changes: 1 addition & 1 deletion library/Kubernetes/Web/EventDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function assemble(): void
'section',
null,
new HtmlElement('h2', null, new Text($this->translate('Note'))),
new Text($this->event->note)
new IcingaStateReason($this->event->note)
),
new HtmlElement(
'section',
Expand Down
6 changes: 6 additions & 0 deletions public/css/conditions.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

.main {
border-top: none;

pre {
background-color: unset;
padding: 0;
margin: 0;
}
}

.visual {
Expand Down

0 comments on commit e54e27a

Please sign in to comment.