gui: the local model's row under Found by takes a dot, not a sparkle

The owner dislikes the sparkle beside 本地模型 in the Privacy card's
Found by ledger. The row now takes the same 7px dot as every other row,
in the local model's colour (--c6, which its meter already uses). The
SPARK path and .mo-spark rule are gone; the row keeps its .model class.

Run at this tree: masking-records, mask-actions, privacy-model and
i18n-keys GUI files, chromium and webkit, every language and width:
71 of 71. Not run: go test ./internal/gui (the disk has 126MB free and
the build failed writing its archive); CI runs it before any tag.
This commit is contained in:
yetone
2026-10-22 15:12:09 +08:00
parent c4551dfcac
commit 8a99473ed9
2 changed files with 3 additions and 11 deletions
-1
View File
@@ -3271,7 +3271,6 @@ body:not(.side-nav) #view-settings .set-head.stuck::before { box-shadow: 0 1px 0
.mo-meter i { display: block; height: 100%; background: color-mix(in srgb, var(--fg) 40%, transparent); transform-origin: left; }
.mo-row.model .mo-meter i { background: var(--c6); }
.mo-dotc { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.mo-spark { flex: none; display: inline-flex; justify-self: center; color: var(--c6); }
.mo-flow { display: grid; grid-template-columns: minmax(0, 200px) minmax(96px, 1fr) minmax(0, 200px); max-width: 760px; margin: 0 auto; }
.mo-col { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.mo-node { display: flex; align-items: center; gap: 7px; height: 30px; min-width: 0; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-size: 12px; cursor: default; }
+3 -10
View File
@@ -21934,7 +21934,6 @@ const MASK_BY = { rule: "Rules", yours: "Your rules", word: "Your words", model:
// what a request was, beside a chat (gateway's noteMasked)
const MASK_WHAT = { search: "Web search", image: "Image", video: "Video", decide: "System One", embeddings: "Embeddings", audio: "Audio" };
const SHIELD = "M8 1.8 13 3.6v4.1c0 3-2.1 5.4-5 6.5-2.9-1.1-5-3.5-5-6.5V3.6Z";
const SPARK = "M7 2.2c.5 2.9 1.4 3.8 4.3 4.3-2.9.5-3.8 1.4-4.3 4.3-.5-2.9-1.4-3.8-4.3-4.3 2.9-.5 3.8-1.4 4.3-4.3Z M12.2 10.2c.2 1.1.6 1.5 1.7 1.7-1.1.2-1.5.6-1.7 1.7-.2-1.1-.6-1.5-1.7-1.7 1.1-.2 1.5-.6 1.7-1.7Z";
const PLACEHOLDER = /\{\{[^{}\s]{1,64}\}\}/g;
let maskS = null; // the settings the card was drawn with
let maskSum = null, maskSumDays = 0, maskAt = 0, maskBusy = null, maskBusyDays = 0;
@@ -22236,15 +22235,9 @@ function maskLedger(title, kind, rows, move) {
rows.forEach((r, i) => {
const b = el("button", "mo-row" + (r.model ? " model" : ""));
b.type = "button";
if (r.model) {
const sp = el("span", "mo-spark");
sp.append(svg(SPARK, 12, 1.3));
b.append(sp);
} else {
const d = el("span", "mo-dotc");
d.style.background = r.c || "var(--faint)";
b.append(d);
}
const d = el("span", "mo-dotc");
d.style.background = r.c || (r.model ? "var(--c6)" : "var(--faint)");
b.append(d);
const m = el("span", "mo-meter"), f = el("i");
f.style.width = (100 * r.n) / max + "%";
if (r.c) f.style.background = r.c;