From aa5065590acd3817ba4ef2c22880ebdb74d1d727 Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 21 May 2026 00:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E4=BF=AE=20WebUI=20=E7=AC=AC=E5=9B=9B?= =?UTF-8?q?=E8=BD=AE=EF=BC=9A=E8=A1=A8=E5=8D=95=E7=BB=86=E8=8A=82=20+=20?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E8=A1=8C=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - inline2 双输入框视觉合并:连体边框、共享圆角、focus 时 z-index 提升 - inline2 内的 span(如 "~")改为正中对齐分隔符 - rowActions 加 border-top + padding-top;primary 按钮自然居前(order: -1) - html scroll-behavior smooth;prefers-reduced-motion 时回退 auto - cache-bust v6 → v7 --- webui/index.html | 4 ++-- webui/styles.css | 58 +++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 57 insertions(+), 5 deletions(-) diff --git a/webui/index.html b/webui/index.html index 1b84bb9..3b9a4db 100644 --- a/webui/index.html +++ b/webui/index.html @@ -15,7 +15,7 @@ } catch (e) {} })(); - +
@@ -1222,6 +1222,6 @@
- + diff --git a/webui/styles.css b/webui/styles.css index ea2be23..abbb39f 100644 --- a/webui/styles.css +++ b/webui/styles.css @@ -154,6 +154,16 @@ body { min-height: 100%; } +html { + scroll-behavior: smooth; +} + +@media (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto; + } +} + body { margin: 0; font-family: "Inter", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; @@ -958,15 +968,57 @@ summary.sectionTitle { .inline2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 8px; + gap: 0; min-width: 0; + border-radius: var(--radius-md); + isolation: isolate; +} + +.inline2 > .input, +.inline2 > input { + border-radius: 0; + margin-left: -1px; +} + +.inline2 > .input:first-child, +.inline2 > input:first-child { + border-top-left-radius: var(--radius-md); + border-bottom-left-radius: var(--radius-md); + margin-left: 0; +} + +.inline2 > .input:last-child, +.inline2 > input:last-child { + border-top-right-radius: var(--radius-md); + border-bottom-right-radius: var(--radius-md); +} + +.inline2 > .input:focus-visible, +.inline2 > input:focus-visible { + z-index: 1; +} + +.inline2 > span { + display: inline-flex; + align-items: center; + justify-content: center; + padding: 0 6px; + color: var(--muted); + font-size: var(--text-sm); } .rowActions { display: flex; + align-items: center; flex-wrap: wrap; - gap: 8px; - margin-top: 12px; + gap: var(--space-2); + margin-top: var(--space-4); + padding-top: var(--space-3); + border-top: 1px solid var(--border); +} + +.rowActions .btnPrimary { + order: -1; } .label {