about summary refs log tree commit diff stats
path: root/html/cards
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2025-01-10 20:39:45 -0500
committerelioat <elioat@tilde.institute>2025-01-10 20:39:45 -0500
commit13109e4a8f38488339812f04edbfbf5fee671886 (patch)
tree344b468960715b3e9aede003ff5f03e2967eda07 /html/cards
parent82a001fc8238fba4435e0a3c97a2d4cc7d892e90 (diff)
downloadtour-13109e4a8f38488339812f04edbfbf5fee671886.tar.gz
*
Diffstat (limited to 'html/cards')
-rw-r--r--html/cards/script.js4
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 => {