Reduce size of decimal places

This commit is contained in:
RunasSudo 2021-01-07 04:08:37 +11:00
parent 04f1b9c177
commit 736a20c224
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 8 additions and 1 deletions

View File

@ -443,10 +443,13 @@ async function clickCount() {
} }
} }
function ppVotes(v) { function ppVotes(v) {
result = parseFloat(v).toFixed(ppDPs); let result = parseFloat(v).toFixed(ppDPs);
if (parseFloat(result) == 0) { if (parseFloat(result) == 0) {
return ' ' return ' '
} }
if (result.indexOf('.') >= 0) {
result = result.substring(0, result.indexOf('.')) + '<sup>' + result.substring(result.indexOf('.')) + '</sup>';
}
return result; return result;
} }
} }

View File

@ -65,6 +65,10 @@ td {
td.count { td.count {
text-align: right; text-align: right;
} }
td.count sup {
font-size: 0.6rem;
top: 0;
}
tr:first-child td { tr:first-child td {
vertical-align: bottom; vertical-align: bottom;
} }