From 865ddd47f419a90b145f6b344cd0492d89bb8fdd Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Sat, 24 Oct 2026 21:59:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=89=93=E5=8D=B0=E8=83=BD=E5=8A=9B):=20?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=89=93=E5=8D=B0=E7=B2=BE=E5=BA=A6=E4=B8=8E?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E8=BE=B9=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/webui/index.html | 2 +- assets/webui/ofdgo.css | 6 +++--- assets/webui/ofdgo_print.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/webui/index.html b/assets/webui/index.html index 1a1ba1d..ea0d8d7 100644 --- a/assets/webui/index.html +++ b/assets/webui/index.html @@ -700,7 +700,7 @@
- + diff --git a/assets/webui/ofdgo.css b/assets/webui/ofdgo.css index 0b38dcf..df5de75 100644 --- a/assets/webui/ofdgo.css +++ b/assets/webui/ofdgo.css @@ -35,14 +35,14 @@ grid-template-columns: 310px minmax(0, 1fr); height: min(62dvh, 660px); min-height: 240px; - gap: 14px; + gap: 12px; } .print-settings { min-width: 0; max-height: 100%; margin: 0; - padding: 0 8px 0 0; + padding: 0; overflow: auto; border: 0; } @@ -66,7 +66,7 @@ .print-field > span { flex: none; color: var(--text-muted); white-space: nowrap; } .print-dialog .print-settings .print-margins input { padding: 0 3px; text-align: center; } .print-check { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } -.print-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(90px, 1fr); grid-auto-rows: var(--control-height); align-items: center; gap: 8px; margin-top: 12px; } +.print-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: var(--control-height); align-items: center; gap: 8px; margin-top: 12px; } .print-options label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .print-check input, .print-options input { margin: 0; accent-color: var(--accent); } .print-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; margin-top: 12px; } diff --git a/assets/webui/ofdgo_print.js b/assets/webui/ofdgo_print.js index f952aaa..5905f42 100644 --- a/assets/webui/ofdgo_print.js +++ b/assets/webui/ofdgo_print.js @@ -45,7 +45,7 @@ export class PrintDialog { for (const [name, value] of Object.entries(saved || {})) { const node = this.el[name]; if (node?.type === "checkbox" && typeof value === "boolean") node.checked = value; - else if (node && typeof value === "string") node.value = value; + else if (node && typeof value === "string" && (!node.options || [...node.options].some(option => option.value === value))) node.value = value; } } catch {} this.mode = this.el.Mode.value;