mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +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 {
|
#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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user