Possibly fix #1

This commit is contained in:
Thomas Lovén 2020-01-06 21:55:26 +01:00
parent 39ccb78490
commit 7e4846ff5d
2 changed files with 11 additions and 2 deletions

View File

@ -61,7 +61,9 @@ class TemplateEntityRow extends LitElement {
${this.state.secondary}
</div>
</div>
<div class="state">
${this.state.state}
</div>
</div>
</div>
`;
@ -72,7 +74,12 @@ class TemplateEntityRow extends LitElement {
let style = HuiGenericEntityRow.styles;
style.cssText = style.cssText
.replace(":host", "#wrapper")
.replace("state-badge", "ha-icon");
.replace("state-badge", "ha-icon")
+ `
.state {
text-align: right;
}
`;
return style;
}
}

View File

@ -15,7 +15,9 @@
${this.state.secondary}
</div>
</div>
<div class="state">
${this.state.state}
</div>
</div>
</div>
`}static get styles(){let e=customElements.get("hui-generic-entity-row").styles;return e.cssText=e.cssText.replace(":host","#wrapper").replace("state-badge","ha-icon"),e}})}]);
`}static get styles(){let e=customElements.get("hui-generic-entity-row").styles;return e.cssText=e.cssText.replace(":host","#wrapper").replace("state-badge","ha-icon")+"\n .state {\n text-align: right;\n }\n ",e}})}]);