Move entity attribution out of attribute expansion panel (#9296)

This commit is contained in:
Philip Allgaier 2021-05-30 16:06:22 +02:00 committed by GitHub
parent 10a77b6278
commit 528af0157d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,17 +54,17 @@ class HaAttributes extends LitElement {
</div> </div>
` `
)} )}
${this.stateObj.attributes.attribution
? html`
<div class="attribution">
${this.stateObj.attributes.attribution}
</div>
`
: ""}
` `
: ""} : ""}
</div> </div>
</ha-expansion-panel> </ha-expansion-panel>
${this.stateObj.attributes.attribution
? html`
<div class="attribution">
${this.stateObj.attributes.attribution}
</div>
`
: ""}
`; `;
} }
@ -91,6 +91,7 @@ class HaAttributes extends LitElement {
.attribution { .attribution {
color: var(--secondary-text-color); color: var(--secondary-text-color);
text-align: center; text-align: center;
margin-top: 16px;
} }
pre { pre {
font-family: inherit; font-family: inherit;