From 13109e4a8f38488339812f04edbfbf5fee671886 Mon Sep 17 00:00:00 2001 From: elioat Date: Fri, 10 Jan 2025 20:39:45 -0500 Subject: * --- html/cards/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html') 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 => { -- cgit 1.4.1-2-gfad0