Adding div arround each row to deal with spacing

This commit is contained in:
Zack Arnett 2018-10-29 13:54:10 -04:00 committed by Paulus Schoutsen
parent 4bcb13486e
commit 058f8d178e

View File

@ -148,9 +148,9 @@ class HuiEntitiesCard extends hassLocalizeLitMixin(LitElement)
margin: -4px 0; margin: -4px 0;
} }
#states > * { #states > * {
margin: 4px 0; margin: 8px 0;
} }
#states > * { #states > div > * {
overflow: hidden; overflow: hidden;
} }
.header { .header {
@ -186,7 +186,7 @@ class HuiEntitiesCard extends hassLocalizeLitMixin(LitElement)
element.addEventListener("click", () => this._handleClick(entityConf)); element.addEventListener("click", () => this._handleClick(entityConf));
} }
return element; return html`<div>${element}</div>`;
} }
private _handleClick(entityConf: ConfigEntity): void { private _handleClick(entityConf: ConfigEntity): void {