From 417fb0415480a3b85455141e985fdcfa8e54b3ee Mon Sep 17 00:00:00 2001 From: shy Date: Sun, 13 Aug 2023 09:59:35 +0800 Subject: [PATCH] add some --- index.css | 2 ++ lib/page.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.css b/index.css index 18869712..8c34e2c4 100644 --- a/index.css +++ b/index.css @@ -29,6 +29,8 @@ input[name=url] { width:320px; } input[name=cmd] { background-color:var(--code-bg-color); color:var(--code-fg-color); width:100%; } table.content.full { width:100%; } table.content thead { position:sticky; top:2px; } +table.content tr.offline { color:var(--disable-fg-color); } +table.content tr.offline a { color:var(--disable-fg-color); } table.content th { padding:5px; box-shadow: var(--box-shadow); } table.content td { padding:5px; } table.content.action th:last-child { position:sticky; right:2px; box-shadow: var(--box-shadow); } diff --git a/lib/page.js b/lib/page.js index 0265d554..5c052733 100644 --- a/lib/page.js +++ b/lib/page.js @@ -177,7 +177,7 @@ Volcanos("page", { can.page.Append(can, ui.thead, [{data: {dataset: {index: -1}}, th: can.core.List(list, function(key) { if (key[0] != "_") { return key } }) }]) can.page.Append(can, ui.tbody, can.core.List(msg.Table(), function(item, index, array) { - return {dataset: {index: index}, td: can.core.List(list, function(key) { if (key[0] != "_") { return cb(can.page.Color(item[key]).trim(), key, index, item, array) } }) } + return {dataset: {index: index}, className: item["status"], td: can.core.List(list, function(key) { if (key[0] != "_") { return cb(can.page.Color(item[key]).trim(), key, index, item, array) } }) } })); return can.page.OrderTable(can, ui.table) }, OrderTable: function(can, table) { can.page.Select(can, table, html.TH, function(th, index) { th.onclick = function(event) { var dataset = event.target.dataset