From fbb5f4c3c5a50f3a5886a2d5161521d576ef6936 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Thu, 27 Jun 2024 19:22:24 +0200 Subject: [PATCH] Set block only for square --- src/panels/lovelace/cards/hui-grid-card.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/panels/lovelace/cards/hui-grid-card.ts b/src/panels/lovelace/cards/hui-grid-card.ts index 6931c4037257..0838db77d9ba 100644 --- a/src/panels/lovelace/cards/hui-grid-card.ts +++ b/src/panels/lovelace/cards/hui-grid-card.ts @@ -92,6 +92,7 @@ class HuiGridCard extends HuiStackCard { } :host([square]) #root > *:not([hidden]) { + display: block; grid-row: 1 / 1; grid-column: 1 / 1; } @@ -103,9 +104,6 @@ class HuiGridCard extends HuiStackCard { grid-row: unset; grid-column: unset; } - #root > hui-card { - display: block; - } `, ]; }