mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-24 13:27:22 +00:00
Make conditional not take up space in stacks when hidden (#1999)
* Make conditional not take up space in stacks when hidden * Update hui-conditional-card.ts
This commit is contained in:
parent
e1c90d74e3
commit
849d7d2d95
@ -67,6 +67,8 @@ class HuiConditionalCard extends HTMLElement implements LovelaceCard {
|
||||
} else if (this._card.parentElement) {
|
||||
this.removeChild(this._card);
|
||||
}
|
||||
// This will hide the complete card so it won't get styled by parent
|
||||
this.style.setProperty("display", visible ? "" : "none");
|
||||
}
|
||||
|
||||
public getCardSize() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user