Skip to content

Commit

Permalink
Update Rank.js (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
21Z authored Jun 19, 2023
1 parent 1077a41 commit da86f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rank.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ class Rank {
ctx.font = `bold 36px ${ops.fontX}`;
ctx.fillStyle = this.data.username.color;
ctx.textAlign = "start";
const name = Util.shorten(this.data.username.name, 10);
const name = Util.shorten(this.data.username.name, this.data.discriminator.discrim ? 10 : 15);

const hasHandle = typeof this.data.discriminator.discrim === 'string' && this.data.discriminator.discrim.startsWith('@');
const yCoord = hasHandle ? 140 : 164;
Expand Down

0 comments on commit da86f17

Please sign in to comment.