From 6dd227637cefa28978ac71e3420430b5e53d2ea8 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 19 Jul 2024 10:33:36 +0200 Subject: [PATCH] BaseTableRowItem: Use `column-content` as CSS class `content` collides with a container's content and confuses Icinga Web's JS (<2.12.2) which applies `impact` to it, but doesn't remove it sometimes. --- asset/css/list/item-table.less | 2 +- src/Common/BaseTableRowItem.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/asset/css/list/item-table.less b/asset/css/list/item-table.less index 68b7d2f1..bd875031 100644 --- a/asset/css/list/item-table.less +++ b/asset/css/list/item-table.less @@ -48,7 +48,7 @@ ul.item-table { margin-bottom: -.5em; } - .content { + .column-content { flex: 1 1 auto; width: 0; diff --git a/src/Common/BaseTableRowItem.php b/src/Common/BaseTableRowItem.php index bc61c8eb..c24578fc 100644 --- a/src/Common/BaseTableRowItem.php +++ b/src/Common/BaseTableRowItem.php @@ -65,7 +65,7 @@ protected function createColumn($content = null): BaseHtmlElement Attributes::create(['class' => 'col']), new HtmlElement( 'div', - Attributes::create(['class' => 'content']), + Attributes::create(['class' => 'column-content']), ...Html::wantHtmlList($content) ) );