Skip to content

Commit

Permalink
fix: redundant stroke
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienDeveaux committed Dec 13, 2024
1 parent 5956678 commit 6e6492b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,9 @@ class MiniGraphCard extends LitElement {
for (let i = 0; i < numLines; i += 1) {
const x = xRatio * (i + 0.5);
if (i % grid_line_frequency > 0) {
lines.push(svg`<line x1=${x} y1="0" x2=${x} y2=${height} stroke="var(--divider-color)" stroke-width="0.5" opacity="0.5"/>`);
lines.push(svg`<line x1=${x} y1="0" x2=${x} y2=${height} stroke="var(--divider-color)" stroke-width="0.5"/>`);
} else {
lines.push(svg`<line x1=${x} y1="0" x2=${x} y2=${height} stroke="rgb(from var(--divider-color) R G B /0.5)" stroke-width="0.5" opacity="1"/>`);
lines.push(svg`<line x1=${x} y1="0" x2=${x} y2=${height} stroke="rgb(from var(--divider-color) R G B /0.5)" stroke-width="0.5"/>`);
}
}

Expand Down

0 comments on commit 6e6492b

Please sign in to comment.