From 50da4bcd37ead186da04172ff55278c9dff6aeb5 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 4 Mar 2024 15:31:49 +0100 Subject: [PATCH] Do not reserve space for condition card in grid section (#19973) * Do not reserve space for condition card in grid section * Update src/panels/lovelace/sections/hui-grid-section.ts Co-authored-by: Bram Kragten --------- Co-authored-by: Bram Kragten --- src/panels/lovelace/sections/hui-grid-section.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/panels/lovelace/sections/hui-grid-section.ts b/src/panels/lovelace/sections/hui-grid-section.ts index 72fc0b13df..83467239ac 100644 --- a/src/panels/lovelace/sections/hui-grid-section.ts +++ b/src/panels/lovelace/sections/hui-grid-section.ts @@ -216,6 +216,14 @@ export class GridSection extends LitElement implements LovelaceSectionElement { grid-column: span var(--column-size, 4); } + .card:has(> *) { + display: block; + } + + .card:has(> *[hidden]) { + display: none; + } + .add { outline: none; grid-row: span var(--row-size, 1);