10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Center all numeric cell in table

This commit is contained in:
Mickaël Véril 2020-01-24 12:17:58 +01:00
parent 1e744ba58a
commit 71ec661006
2 changed files with 4 additions and 1 deletions

View File

@ -375,7 +375,7 @@ draft: false
$("<td/>").text(String.raw`${LatexInline[0]}${ex[0].toLaTeX()} \rightarrow ${ex[1].toLaTeX()} (${ex[2].LaTeX}) ${LatexInline[1]}`).appendTo(tr) $("<td/>").text(String.raw`${LatexInline[0]}${ex[0].toLaTeX()} \rightarrow ${ex[1].toLaTeX()} (${ex[2].LaTeX}) ${LatexInline[1]}`).appendTo(tr)
var entries = Array.from(exdat.entries()) var entries = Array.from(exdat.entries())
for (const method of sortedMethods) { for (const method of sortedMethods) {
td = $("<td/>") td = $("<td/>").addClass("NumberCell")
kv = entries.find(x => { kv = entries.find(x => {
return JSON.stringify(method) == x[0] return JSON.stringify(method) == x[0]
}) })

View File

@ -1,3 +1,6 @@
table.datatable > tbody > tr > td { table.datatable > tbody > tr > td {
white-space: nowrap; white-space: nowrap;
}
td.NumberCell {
text-align: center;
} }