From 7bb92faa56c2d54dbf7f5cf6a89d93403adc5025 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 27 Mar 2025 17:35:33 +0100 Subject: [PATCH] css: Adjust host|servicegroup layout --- public/css/item/hostgroup.less | 22 ++++++++++++++++++++++ public/css/item/servicegroup.less | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 public/css/item/hostgroup.less create mode 100644 public/css/item/servicegroup.less diff --git a/public/css/item/hostgroup.less b/public/css/item/hostgroup.less new file mode 100644 index 00000000..7a4d6617 --- /dev/null +++ b/public/css/item/hostgroup.less @@ -0,0 +1,22 @@ +.hostgroup { + &.table-row.item-layout { + > .col:has(.object-statistics) { + align-content: center; // Actually, not sure why this works… .col is not a grid container + } + + > .main > .caption { + height: auto; + .text-ellipsis(); + .line-clamp("reset"); + } + } + + &.header-item-layout > .main { + padding-top: 0; + padding-bottom: 0; + + > header { + align-items: center; + } + } +} diff --git a/public/css/item/servicegroup.less b/public/css/item/servicegroup.less new file mode 100644 index 00000000..9c79e9a2 --- /dev/null +++ b/public/css/item/servicegroup.less @@ -0,0 +1,3 @@ +.servicegroup { + .hostgroup; +}