Energy Dashboard: Align total cost with 'previous cost' column. (#12883)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
RoboMagus 2022-06-07 17:11:47 +02:00 committed by GitHub
parent e386942ea7
commit 578ff5b53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -851,7 +851,10 @@ export class HuiEnergySourcesTableCard
)}
</th>
${compare
? html`<td
? html`${showCosts
? html`<td class="mdc-data-table__cell"></td>`
: ""}
<td
class="mdc-data-table__cell mdc-data-table__cell--numeric"
>
${formatNumber(
@ -862,10 +865,7 @@ export class HuiEnergySourcesTableCard
currency: this.hass.config.currency!,
}
)}
</td>
${showCosts
? html`<td class="mdc-data-table__cell"></td>`
: ""}`
</td>`
: ""}
<td class="mdc-data-table__cell"></td>
<td