From 8a99473ed90567da3a310c61440e8392dda41ba2 Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 22 Oct 2026 15:12:09 +0800 Subject: [PATCH] gui: the local model's row under Found by takes a dot, not a sparkle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- internal/gui/assets/app.css | 1 - internal/gui/assets/app.js | 13 +++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.css index 66ce7e254..97c5c93f2 100644 --- a/internal/gui/assets/app.css +++ b/internal/gui/assets/app.css @@ -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; } diff --git a/internal/gui/assets/app.js b/internal/gui/assets/app.js index a99bdd23b..710a54f10 100644 --- a/internal/gui/assets/app.js +++ b/internal/gui/assets/app.js @@ -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;