mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
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:
parent
cf55824899
commit
e9cbd54979
@ -234,12 +234,15 @@ export class HuiEntityBadge extends LitElement implements LovelaceBadge {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
height: 36px;
|
height: var(--ha-badge-size, 36px);
|
||||||
min-width: 36px;
|
min-width: var(--ha-badge-size, 36px);
|
||||||
padding: 0px 8px;
|
padding: 0px 8px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: auto;
|
width: auto;
|
||||||
border-radius: 18px;
|
border-radius: var(
|
||||||
|
--ha-badge-border-radius,
|
||||||
|
calc(var(--ha-badge-size, 36px) / 2)
|
||||||
|
);
|
||||||
background: var(
|
background: var(
|
||||||
--ha-card-background,
|
--ha-card-background,
|
||||||
var(--card-background-color, white)
|
var(--card-background-color, white)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user