Skip to content

Commit

Permalink
Fix label rendering in template badge (#1533)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Sep 4, 2024
1 parent 3177266 commit f676973
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/badges/template/template-badge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ export class HuiEntityBadge extends LitElement implements LovelaceBadge {
: nothing}
${content
? html`
<span class="content">
${label ? html`<span class="name">${label}</span>` : nothing}
<span class="state">${content}</span>
<span class="info">
${label ? html`<span class="label">${label}</span>` : nothing}
<span class="content">${content}</span>
</span>
`
: nothing}
Expand Down

0 comments on commit f676973

Please sign in to comment.