summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-01-08 17:22:09 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 17:22:09 +0100
commiteef4d76f4b38733d1bbd7c3413c6145f9c7d6ad1 (patch)
treeddccb7595349b5581012b22463a6f9e15342ca97
parentf89cc7336ffb47043bd64a091b64859c09b70002 (diff)
downloadtable-battles-eef4d76f4b38733d1bbd7c3413c6145f9c7d6ad1.tar.gz
thin/hairsp?
-rw-r--r--cards.css1
-rw-r--r--play.js2
-rw-r--r--tools/gendata.js2
3 files changed, 2 insertions, 3 deletions
diff --git a/cards.css b/cards.css
index 27f0a22..b68353a 100644
--- a/cards.css
+++ b/cards.css
@@ -129,7 +129,6 @@
line-height: 24px;
text-align: center;
margin: 12px 0;
- font-variant-numeric: tabular-nums;
}
/*
diff --git a/play.js b/play.js
index 23468a3..f5da014 100644
--- a/play.js
+++ b/play.js
@@ -212,7 +212,7 @@ function create_formation_card(id, tip=false) {
if (card.dice) {
let dice_text = dice_text_map[card.dice] || card.dice
dice_text = dice_text.replaceAll("-", "&thinsp;&ndash;&thinsp;")
- dice_text = dice_text.replaceAll("/", "&hairsp;/&hairsp;")
+ dice_text = dice_text.replaceAll("/", "&thinsp;/&thinsp;")
dice_text = dice_text.replace("(", "(&thinsp;")
dice_text = dice_text.replace(")", "&thinsp;)")
if (card.morale === 2)
diff --git a/tools/gendata.js b/tools/gendata.js
index cb938e1..c787d32 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -238,7 +238,7 @@ for (let c of card_records) {
if (c.dice) {
let dice_text = dice_text_map[c.dice] || c.dice
dice_text = dice_text.replaceAll("-", "&thinsp;&minus;&thinsp;")
- dice_text = dice_text.replaceAll("/", "&hairsp;/&hairsp;")
+ dice_text = dice_text.replaceAll("/", "&thinsp;/&thinsp;")
dice_text = dice_text.replace("(", "(&thinsp;")
dice_text = dice_text.replace(")", "&thinsp;)")
if (card.morale === 2)