Skip to content

Commit

Permalink
fix: scale param not applying correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitru committed Sep 21, 2020
1 parent e7ef1b9 commit 6f7ffa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/console-extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ const getImgStyle = (width: number, height: number, scale = 1) => {
string: '+',
style:
'font-size: 1px; padding: ' +
Math.floor(height / 2) +
Math.floor((height * scale) / 2) +
'px ' +
Math.floor(width / 2) +
Math.floor((width * scale) / 2) +
'px; line-height: ' +
height +
'px;',
Expand Down

0 comments on commit 6f7ffa4

Please sign in to comment.