mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix wrapping in the entities card (#1317)
This commit is contained in:
parent
b312533948
commit
9d22645e87
@ -26,8 +26,7 @@ class HuiEntitiesCard extends EventsMixin(PolymerElement) {
|
||||
#states {
|
||||
margin: -4px 0;
|
||||
}
|
||||
#states > * {
|
||||
display: block;
|
||||
#states > div {
|
||||
margin: 4px 0;
|
||||
}
|
||||
.header {
|
||||
@ -103,7 +102,9 @@ class HuiEntitiesCard extends EventsMixin(PolymerElement) {
|
||||
element.stateObj = stateObj;
|
||||
element.hass = this.hass;
|
||||
this._elements.push({ entityId, element });
|
||||
root.appendChild(element);
|
||||
const container = document.createElement('div');
|
||||
container.appendChild(element);
|
||||
root.appendChild(container);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user