mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Remove margin from conditional if not shown (#1730)
This commit is contained in:
parent
bb24b55a67
commit
0243632357
@ -74,6 +74,7 @@ class HuiConditionalCard extends PolymerElement {
|
||||
return false;
|
||||
});
|
||||
root.classList.toggle('hidden', !visible);
|
||||
this.style.setProperty('margin', (!visible) ? '0' : null);
|
||||
}
|
||||
}
|
||||
customElements.define('hui-conditional-card', HuiConditionalCard);
|
||||
|
Loading…
x
Reference in New Issue
Block a user