Possibly fix #1
This commit is contained in:
parent
39ccb78490
commit
7e4846ff5d
@ -61,9 +61,11 @@ class TemplateEntityRow extends LitElement {
|
|||||||
${this.state.secondary}
|
${this.state.secondary}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="state">
|
||||||
${this.state.state}
|
${this.state.state}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,7 +74,12 @@ class TemplateEntityRow extends LitElement {
|
|||||||
let style = HuiGenericEntityRow.styles;
|
let style = HuiGenericEntityRow.styles;
|
||||||
style.cssText = style.cssText
|
style.cssText = style.cssText
|
||||||
.replace(":host", "#wrapper")
|
.replace(":host", "#wrapper")
|
||||||
.replace("state-badge", "ha-icon");
|
.replace("state-badge", "ha-icon")
|
||||||
|
+ `
|
||||||
|
.state {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
`;
|
||||||
return style;
|
return style;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,9 @@
|
|||||||
${this.state.secondary}
|
${this.state.secondary}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="state">
|
||||||
${this.state.state}
|
${this.state.state}
|
||||||
</div>
|
</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}})}]);
|
</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