Possibly fix #1

This commit is contained in:
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;
}
}