10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2025-01-12 05:58:23 +01:00

Put white-space: nowrap; in css

This commit is contained in:
Mickaël Véril 2019-12-29 20:00:13 +01:00
parent 1253105391
commit 2167f5bea6
2 changed files with 9 additions and 9 deletions

View File

@ -5,6 +5,7 @@ draft: false
--- ---
<link rel="stylesheet" type="text/css" href="/css/modal.css" /> <link rel="stylesheet" type="text/css" href="/css/modal.css" />
<link rel="stylesheet" type="text/css" href="/css/form.css" /> <link rel="stylesheet" type="text/css" href="/css/form.css" />
<link rel="stylesheet" type="text/css" href="/css/table.css" />
<script src="/js/data.js" type="text/javascript"></script> <script src="/js/data.js" type="text/javascript"></script>
<script src="/js/loadAllData.js" type="text/javascript"></script> <script src="/js/loadAllData.js" type="text/javascript"></script>
<script src="/js/getFullDataPath.js" type="text/javascript"></script> <script src="/js/getFullDataPath.js" type="text/javascript"></script>
@ -137,9 +138,7 @@ draft: false
Reflect.setPrototypeOf(key[0], method.prototype) Reflect.setPrototypeOf(key[0], method.prototype)
Reflect.setPrototypeOf(key[1], DOI.prototype) Reflect.setPrototypeOf(key[1], DOI.prototype)
for (const el of key) { for (const el of key) {
var td = $("<td/>", { var td = $("<td/>")
style: "white-space: nowrap;"
})
if (trueTypeOf(el) == DOI.name) { if (trueTypeOf(el) == DOI.name) {
var publi = doiCache.get(el.string) var publi = doiCache.get(el.string)
const sets=await getSets() const sets=await getSets()
@ -238,11 +237,9 @@ draft: false
else if (d instanceof twoStateDataFileBase) { else if (d instanceof twoStateDataFileBase) {
tableels.splice(3, 0, [d.GS, d.ES]) tableels.splice(3, 0, [d.GS, d.ES])
} }
tdtemp=$("<td/>", { tdtemp=$("<td/>")
style: "white-space: nowrap;"
})
for (const el of tableels) { for (const el of tableels) {
td=$(tdtemp).clone() td=$("<td/>")
if (trueTypeOf(el) == DOI.name) { if (trueTypeOf(el) == DOI.name) {
var publi = doiCache.get(el.string) var publi = doiCache.get(el.string)
const sets=await getSets() const sets=await getSets()
@ -328,7 +325,7 @@ draft: false
<select id="sel_ref" onchange="reloadStat()"></select> <select id="sel_ref" onchange="reloadStat()"></select>
</form> </form>
<section> <section>
<table id="dat_table"> <table id="dat_table" class="datatable">
<thead> <thead>
<th>Molecule</th> <th>Molecule</th>
<th>Comment</th> <th>Comment</th>
@ -345,7 +342,7 @@ draft: false
</table> </table>
</section> </section>
<section> <section>
<table id="stat_table"> <table id="stat_table" class="datatable">
<thead> <thead>
<th>Method</th> <th>Method</th>
<th>Publication</th> <th>Publication</th>

3
static/css/table.css Normal file
View File

@ -0,0 +1,3 @@
table.datatable > tbody > tr > td {
white-space: nowrap;
}