mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 14:26:35 +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) {
|
} else if (this._card.parentElement) {
|
||||||
this.removeChild(this._card);
|
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() {
|
public getCardSize() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user