about summary refs log tree commit diff stats
path: root/html
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
parent82a001fc8238fba4435e0a3c97a2d4cc7d892e90 (diff)
downloadtour-13109e4a8f38488339812f04edbfbf5fee671886.tar.gz
*
Diffstat (limited to 'html')
-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 => {
a id='n127' href='#n127'>127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191