diff --git a/.gitignore b/.gitignore index a5c8936..3c497e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .vscode -.env \ No newline at end of file +.env +.idea diff --git a/src/card.ts b/src/card.ts index 8d8919f..3a20b91 100644 --- a/src/card.ts +++ b/src/card.ts @@ -26,7 +26,7 @@ export class Card { private maxRow: number, private panelSize: number, private marginWidth: number, - private marginHight: number, + private marginHeight: number, private noBackground: boolean, private noFrame: boolean, ) { @@ -85,7 +85,7 @@ export class Card { if (row > this.maxRow) { row = this.maxRow; } - this.height = this.panelSize * row + this.marginHight * (row - 1); + this.height = this.panelSize * row + this.marginHeight * (row - 1); // Join all trophy const renderedTrophy = trophyList.reduce( @@ -93,7 +93,7 @@ export class Card { const currentColumn = i % this.maxColumn; const currentRow = Math.floor(i / this.maxColumn); const x = this.panelSize * currentColumn + this.marginWidth * currentColumn; - const y = this.panelSize * currentRow + this.marginHight * currentRow; + const y = this.panelSize * currentRow + this.marginHeight * currentRow; return sum + trophy.render(theme, x, y, this.panelSize, this.noBackground, this.noFrame); }, "", diff --git a/src/icons.ts b/src/icons.ts index 4629f2d..8e7dbf7 100644 --- a/src/icons.ts +++ b/src/icons.ts @@ -2,7 +2,7 @@ import { RANK } from "./utils.ts"; import { Theme } from "./theme.ts"; const leafIcon = (laurel: string): string => { - return ` + return ` Created by potrace 1.15, written by Peter Selinger 2001-2017 @@ -31,7 +31,7 @@ export const getNextRankBar = ( percentage: number, color: string, ): string => { - const maxWidht = 80; + const maxWidth = 80; return `