From 86e4d7d6ae6501ff58dfc44897b6da2672948d6b Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Fri, 30 Oct 2026 16:20:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=95=8C=E9=9D=A2=E8=AE=BE=E8=AE=A1):=20?= =?UTF-8?q?=E7=AE=80=E5=8C=96=E9=80=89=E4=B8=AD=E6=A0=B7=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=8B=E6=8B=89=E7=AE=AD=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/webui/ofdgo.css | 40 +++----------------------------------- assets/webui/ofdgo_font.js | 3 +-- 2 files changed, 4 insertions(+), 39 deletions(-) diff --git a/assets/webui/ofdgo.css b/assets/webui/ofdgo.css index 6ea0df8..f047e9d 100644 --- a/assets/webui/ofdgo.css +++ b/assets/webui/ofdgo.css @@ -640,7 +640,6 @@ a:focus-visible { } .font-listbox .font-option { - position: relative; display: flex; align-items: baseline; justify-content: space-between; @@ -663,28 +662,15 @@ a:focus-visible { font-size: 12px; } -.font-listbox .font-option:not([data-disabled="true"]):hover, -.font-listbox [data-selected="true"] { +.font-listbox .font-option:not([data-disabled="true"]):not([data-selected="true"]):hover { background: var(--hover); } .font-listbox [data-selected="true"] { - outline: 1px solid var(--focus); - outline-offset: -1px; -} - -.font-listbox [data-current="true"] { + background: var(--selected); color: var(--accent-strong); } -.font-listbox [data-current="true"]::before { - position: absolute; - inset: 6px auto 6px 0; - width: 2px; - background: var(--accent); - content: ""; -} - .font-listbox [data-disabled="true"], .font-search-empty { color: var(--text-muted); @@ -1289,27 +1275,6 @@ button:not(:disabled):hover { vertical-align: middle; } -.convert-format select { - -webkit-appearance: none; - appearance: none; - padding: 0 12px; -} - -.convert-format::after { - position: absolute; - right: 6px; - top: calc(50% - 2px); - border: 3px solid transparent; - border-bottom: 0; - border-top-color: currentColor; - pointer-events: none; - content: ""; -} - -.convert-format:has(select:disabled)::after { - opacity: 0.48; -} - .convert-table tbody tr:last-child td { border-bottom: 0; } @@ -2822,6 +2787,7 @@ body[data-hide-meta] .meta-panel { padding-left: 6px; border: 1px solid var(--line); background-color: var(--input); + color: var(--text); font: inherit; } diff --git a/assets/webui/ofdgo_font.js b/assets/webui/ofdgo_font.js index d05cb0d..dee398b 100644 --- a/assets/webui/ofdgo_font.js +++ b/assets/webui/ofdgo_font.js @@ -98,13 +98,12 @@ export class FontPicker { return terms.every(term => name.includes(term)); }); this.list.replaceChildren(); - for (const { font, index, group } of this.matches) { + for (const { font, index } of this.matches) { const option = document.createElement("div"); option.className = "font-option"; option.id = `${this.list.id}-${index}`; option.dataset.index = String(index); option.setAttribute("data-disabled", String(Boolean(font.disabled))); - option.setAttribute("data-current", String(!font.disabled && group.includes(Number(this.value)))); const name = document.createElement("span"); name.textContent = font.menuFamily || font.fullName || font.name; option.append(name);