dashboard(items): lighter id column color
This commit is contained in:
@@ -75,6 +75,7 @@ th,td{text-align:left;padding:8px 10px;border-bottom:1px solid #2a2e3a;vertical-
|
||||
th{background:#1e222b;color:#9aa2b1;font-weight:600;position:sticky;top:0}
|
||||
tr:last-child td{border-bottom:none}
|
||||
.mono,code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12.5px;color:#c9d1e2}
|
||||
.idc{color:#6b7280}
|
||||
.badge{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:600}
|
||||
.b-known{background:rgba(46,204,113,.15);color:#2ecc71}
|
||||
.b-learning{background:rgba(241,196,15,.15);color:#f1c40f}
|
||||
@@ -293,7 +294,7 @@ function renderItems() {
|
||||
`<thead><tr><th>id</th><th>条目</th><th>等级</th><th>释义</th>
|
||||
<th>上下文</th><th>状态</th></tr></thead><tbody>` +
|
||||
(slice.map(i => `<tr>
|
||||
<td class="mono">${esc(i.id)}</td>
|
||||
<td class="mono idc">${esc(i.id)}</td>
|
||||
<td><b>${esc(i.item)}</b></td><td>${esc(i.level)}</td>
|
||||
<td>${esc(i.meaning)}</td><td class="muted">${esc(i.context)}</td>
|
||||
<td>${badge(i.status)}</td></tr>`).join("")
|
||||
|
||||
Reference in New Issue
Block a user