Option to change new badge size (#21676)

* Update hui-entity-badge.ts

add option to chsnge badge size

* Update hui-entity-badge.ts

Co-authored-by: Damian Sypniewski <16312757+dsypniewski@users.noreply.github.com>

* Update hui-entity-badge.ts

prettier

* Update hui-entity-badge.ts

Fixed something strange

---------

Co-authored-by: Damian Sypniewski <16312757+dsypniewski@users.noreply.github.com>
This commit is contained in:
Douwe 2024-08-28 09:02:34 +02:00 committed by GitHub
parent cf55824899
commit e9cbd54979
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -234,12 +234,15 @@ export class HuiEntityBadge extends LitElement implements LovelaceBadge {
align-items: center;
justify-content: center;
gap: 8px;
height: 36px;
min-width: 36px;
height: var(--ha-badge-size, 36px);
min-width: var(--ha-badge-size, 36px);
padding: 0px 8px;
box-sizing: border-box;
width: auto;
border-radius: 18px;
border-radius: var(
--ha-badge-border-radius,
calc(var(--ha-badge-size, 36px) / 2)
);
background: var(
--ha-card-background,
var(--card-background-color, white)