Skip to content

Commit

Permalink
fix(#124): reduce icon size to fit in the box
Browse files Browse the repository at this point in the history
  • Loading branch information
MindFreeze committed Oct 21, 2023
1 parent 6dd970c commit 4899c6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,9 @@ export class Chart extends LitElement {
title=${formattedState + box.unit_of_measurement + ' ' + name}
class=${this.highlightedEntities.includes(box.config) ? 'hl' : ''}
>
${show_icons && isNotPassthrough ? html`<ha-icon .icon=${icon}></ha-icon>` : null}
${show_icons && isNotPassthrough
? html`<ha-icon .icon=${icon} style=${styleMap({ transform: 'scale(0.65)' })}></ha-icon>`
: null}
</div>
<div class="label" style=${styleMap(labelStyle)}>
${show_states && isNotPassthrough
Expand Down

0 comments on commit 4899c6c

Please sign in to comment.