diff --git a/src/panels/lovelace/sections/hui-grid-section.ts b/src/panels/lovelace/sections/hui-grid-section.ts index 72fc0b13df84..83467239ac12 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);