about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 => {