Skip to content

Commit

Permalink
Do not reserve space for condition card in grid section (#19973)
Browse files Browse the repository at this point in the history
* Do not reserve space for condition card in grid section

* Update src/panels/lovelace/sections/hui-grid-section.ts

Co-authored-by: Bram Kragten <[email protected]>

---------

Co-authored-by: Bram Kragten <[email protected]>
  • Loading branch information
piitaya and bramkragten authored Mar 4, 2024
1 parent b99072d commit 50da4bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/panels/lovelace/sections/hui-grid-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 50da4bc

Please sign in to comment.