Fix wrapping in the entities card (#1317)

This commit is contained in:
Paulus Schoutsen 2018-06-21 17:10:07 -04:00 committed by GitHub
parent b312533948
commit 9d22645e87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,8 +26,7 @@ class HuiEntitiesCard extends EventsMixin(PolymerElement) {
#states { #states {
margin: -4px 0; margin: -4px 0;
} }
#states > * { #states > div {
display: block;
margin: 4px 0; margin: 4px 0;
} }
.header { .header {
@ -103,7 +102,9 @@ class HuiEntitiesCard extends EventsMixin(PolymerElement) {
element.stateObj = stateObj; element.stateObj = stateObj;
element.hass = this.hass; element.hass = this.hass;
this._elements.push({ entityId, element }); this._elements.push({ entityId, element });
root.appendChild(element); const container = document.createElement('div');
container.appendChild(element);
root.appendChild(container);
} }
} }