dashboard: drop the dash for the chat row's missing Revoke

The chat key has nothing to revoke, and ' - ' never centred in a grid cell sized
for a button, so it read as misalignment rather than as a deliberate blank. The
action column is empty for that row; the other rows still define the columns.
This commit is contained in:
inference-admin committed 2026-11-14 19:03:24 +00:00
1 parent 0eb11dd221
commit 90e320e190
1 file changed
+1 -2
+1 -2
View File
@@ -636,7 +636,6 @@ PAGE_HTML = """<!DOCTYPE html>
.key-bar-track { background: #eef0ea; border-radius: 6px; height: 14px; overflow: hidden; } .key-bar-track { background: #eef0ea; border-radius: 6px; height: 14px; overflow: hidden; }
.key-bar-fill { background: var(--green-mid); height: 100%; border-radius: 6px; } .key-bar-fill { background: var(--green-mid); height: 100%; border-radius: 6px; }
.key-bar-val { font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; } .key-bar-val { font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.key-bar-dash { font-size: 12px; opacity: .45; }
.key-row { .key-row {
display: flex; align-items: center; justify-content: space-between; gap: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
padding: 14px 0; border-bottom: 1px solid var(--border); padding: 14px 0; border-bottom: 1px solid var(--border);
@@ -1732,7 +1731,7 @@ function renderKeys(keys, keySpend) {
'<div class="key-bar-track" role="img" aria-label="' + escapeHtml(shown) + '">' + '<div class="key-bar-track" role="img" aria-label="' + escapeHtml(shown) + '">' +
'<div class="key-bar-fill" style="width:' + pct + '%"></div></div>' + '<div class="key-bar-fill" style="width:' + pct + '%"></div></div>' +
'<div class="key-bar-val">' + escapeHtml(shown) + '</div>' + '<div class="key-bar-val">' + escapeHtml(shown) + '</div>' +
(r.chat ? '<span class="key-bar-dash"> - </span>' (r.chat ? ''
: '<button class="ghost" data-name="' + escapeHtml(r.name) + '" onclick="revokeKey(this.dataset.name)">Revoke</button>') + : '<button class="ghost" data-name="' + escapeHtml(r.name) + '" onclick="revokeKey(this.dataset.name)">Revoke</button>') +
'</div>'; '</div>';
}).join(''); }).join('');