Skip to content

Commit

Permalink
inline style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MindFreeze committed Mar 24, 2022
1 parent 646446a commit 1eb0965
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ha-sankey-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class SankeyChart extends LitElement {
tabindex="0"
.label=${`Boilerplate: ${this.config.entity || 'No Entity Defined'}`}
>
<div class="container ${this.config.wide ? 'wide' : ''}" style="height:${this.height}px">
<div class="container ${this.config.wide ? 'wide' : ''}" style=${styleMap({height: this.height+'px'})}>
${this.sections.map((s, i) => this.renderSection(i))}
</div>
</ha-card>
Expand All @@ -159,7 +159,7 @@ export class SankeyChart extends LitElement {
${boxes.map((box, i) => {
// const {icon} = box.entity.attributes;
return html`
${i > 0 ? html`<div class="spacerv" style="height:${section.spacerH}px"></div>` : null}
${i > 0 ? html`<div class="spacerv" style=${styleMap({height: section.spacerH+'px'})}></div>` : null}
<div class="box" style=${styleMap({height: box.size+'px'})}>
<div style=${styleMap({backgroundColor: box.color})}>
${show_icons && html`<ha-icon .icon=${stateIcon(box.entity)}></ha-icon>`}
Expand Down

0 comments on commit 1eb0965

Please sign in to comment.