From 9fd36517f5488c2ee2ac8be7b263f0c95d14857c Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 19 Jul 2024 10:33:36 +0200 Subject: [PATCH] BaseTableRowItem: Use `col-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..c98783c9 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 { + .col-content { flex: 1 1 auto; width: 0; diff --git a/src/Common/BaseTableRowItem.php b/src/Common/BaseTableRowItem.php index bc61c8eb..497fdfca 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' => 'col-content']), ...Html::wantHtmlList($content) ) );