From 7e4846ff5d83bdfbb7757d95acc5e57681ea36bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Mon, 6 Jan 2020 21:55:26 +0100 Subject: [PATCH] Possibly fix #1 --- src/main.js | 9 ++++++++- template-entity-row.js | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index e6a9ee5..67f231c 100644 --- a/src/main.js +++ b/src/main.js @@ -61,7 +61,9 @@ class TemplateEntityRow extends LitElement { ${this.state.secondary} +
${this.state.state} +
`; @@ -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; } } diff --git a/template-entity-row.js b/template-entity-row.js index 15a209c..28e29dc 100644 --- a/template-entity-row.js +++ b/template-entity-row.js @@ -15,7 +15,9 @@ ${this.state.secondary} +
${this.state.state} +
- `}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}})}]); \ No newline at end of file + `}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}})}]); \ No newline at end of file