Skip to content

Commit

Permalink
Merge pull request #44 from molikk/fix-inverter-load-graphic-represen…
Browse files Browse the repository at this point in the history
…tation

fix inverter load graphic representation (load frame around inverter image)
  • Loading branch information
molikk authored Jul 24, 2024
2 parents 36f9da4 + e7330a0 commit 636b33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cards/compact/inverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class Inverter {
preserveAspectRatio="none" >
<defs>
<linearGradient id="invG" x1="0%" x2="0%" y1="100%" y2="-2%">
${this.buildGradientStops(100)}
${this.buildGradientStops(data.stateInverterLoadPercentage.toNum(0))}
</linearGradient>
</defs>
<rect x="1" y="1" width="${X[2] - 2}" height="${X[3] - 2}" rx="${X[4]}" ry="${X[4]}" stroke="url(#invG)" fill="none" stroke-width="3"
Expand Down

0 comments on commit 636b33e

Please sign in to comment.