diff --git a/html/index.html b/html/index.html
index fcb5f47..6c38bd2 100644
--- a/html/index.html
+++ b/html/index.html
@@ -12,6 +12,7 @@
}
td {
padding: 0px 8px;
+ min-height: 1em;
}
td.count {
text-align: right;
diff --git a/html/index.js b/html/index.js
index 390d149..76df842 100644
--- a/html/index.js
+++ b/html/index.js
@@ -180,6 +180,8 @@ async function clickCount() {
elTd.style.borderTop = '1px solid black';
if (countCard.transfers != '0.00' && countCard.transfers != '0') {
elTd.innerText = countCard.transfers;
+ } else {
+ elTd.innerHTML = ' ';
}
elTr1.appendChild(elTd);
@@ -198,7 +200,7 @@ async function clickCount() {
elTd.innerText = 'WD';
} else if (countCard.state === py.pyRCV2.model.CandidateState.EXCLUDED) {
elTd.classList.add('excluded');
- elTd.innerText = 'EX';
+ elTd.innerText = 'Ex';
} else {
elTd.innerText = countCard.votes;
}
@@ -213,6 +215,8 @@ async function clickCount() {
elTd.style.borderTop = '1px solid black';
if (result.exhausted.transfers != '0.00' && result.exhausted.transfers != '0') {
elTd.innerText = result.exhausted.transfers;
+ } else {
+ elTd.innerHTML = ' ';
}
elExhausted1.appendChild(elTd);
@@ -227,6 +231,8 @@ async function clickCount() {
elTd.style.borderTop = '1px solid black';
if (result.loss_fraction.transfers != '0.00' && result.loss_fraction.transfers != '-0.00' && result.loss_fraction.transfers != '0') {
elTd.innerText = result.loss_fraction.transfers;
+ } else {
+ elTd.innerHTML = ' ';
}
elLTF1.appendChild(elTd);