Possibly fix #1
This commit is contained in:
parent
39ccb78490
commit
7e4846ff5d
@ -61,9 +61,11 @@ 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;
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,9 @@
|
||||
${this.state.secondary}
|
||||
</div>
|
||||
</div>
|
||||
<div class="state">
|
||||
${this.state.state}
|
||||
</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}})}]);
|
||||
</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")+"\n .state {\n text-align: right;\n }\n ",e}})}]);
|
Loading…
x
Reference in New Issue
Block a user