Update state-badge.ts: change border-radius for media_player (#18066)

This commit is contained in:
ildar170975 2023-10-09 15:11:29 +03:00 committed by GitHub
parent 220b4794c5
commit 352e721d0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,6 +140,9 @@ export class StateBadge extends LitElement {
if (domain === "update") {
hostStyle.borderRadius = "0";
}
if (domain === "media_player") {
hostStyle.borderRadius = "8%";
}
} else if (this.color) {
// Externally provided overriding color wins over state color
iconStyle.color = this.color;