Merge pull request #1913 from home-assistant/entities-padding-fix

Fixes #1910 - Entities Margin correction
This commit is contained in:
Zack Arnett 2018-10-29 15:45:15 -04:00 committed by GitHub
commit 6dac48e5b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,9 +128,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 {
@ -166,7 +166,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) { private _handleClick(entityConf: ConfigEntity) {