diff options
author | elioat <elioat@tilde.institute> | 2025-01-10 20:39:45 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2025-01-10 20:39:45 -0500 |
commit | 13109e4a8f38488339812f04edbfbf5fee671886 (patch) | |
tree | 344b468960715b3e9aede003ff5f03e2967eda07 /html | |
parent | 82a001fc8238fba4435e0a3c97a2d4cc7d892e90 (diff) | |
download | tour-13109e4a8f38488339812f04edbfbf5fee671886.tar.gz |
*
Diffstat (limited to 'html')
-rw-r--r-- | html/cards/script.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/html/cards/script.js b/html/cards/script.js index b527050..50c4287 100644 --- a/html/cards/script.js +++ b/html/cards/script.js @@ -83,9 +83,9 @@ const renderCardFront = card => { ctx.textAlign = 'center'; // Center the text for the suit ctx.fillText(card.card.suit, card.x + CARD_WIDTH / 2, card.y + CARD_HEIGHT / 2 + 10); // Centered position - // Draw value in the bottom right corner + // Draw value in the bottom right corner with adjusted padding ctx.textAlign = 'right'; // Ensure right alignment for the bottom value - ctx.fillText(card.card.value, card.x + CARD_WIDTH - 30, card.y + CARD_HEIGHT - 10); + ctx.fillText(card.card.value, card.x + CARD_WIDTH - 20, card.y + CARD_HEIGHT - 10); // Reduced padding }; const renderCard = card => { |