Skip to content

Commit

Permalink
feat(Comparisons): finetune indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
domtra committed Sep 27, 2024
1 parent dd3d1eb commit 98f9786
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/comparisons/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@
}

&__diff-inidicator {
background-color: #f0f0f1;
box-sizing: border-box;
border-block: 1px solid transparent;
height: 100%;
width: 4px;
}
Expand Down
2 changes: 1 addition & 1 deletion components/comparisons/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class VrtsComparisons extends window.HTMLElement {
this.$comparison.naturalWidth,
this.$comparison.naturalHeight
);
ctx.fillStyle = 'red';
ctx.fillStyle = '#cc1818';
pixels.forEach( ( y ) => {
ctx.fillRect( 0, y, ctx.canvas.width, 1 );
} );
Expand Down

0 comments on commit 98f9786

Please sign in to comment.