From 23fd8db77d1bba5d95ef5b7a6261676b838b838b Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 3 Jun 2026 20:01:44 +0800 Subject: [PATCH] refactor(portal): move .hint info-banner ABOVE its + upgrade to teal-accented banner style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two-part UX upgrade: 1. CSS — upgrade .hint from a generic "card with slate background" to a proper info-banner: - background: var(--color-primary-soft) (translucent teal 12%) instead of var(--bg-elev-2) (slate card) — visually distinct from any card, so it can never be confused with one - border-left: 2px solid var(--color-primary) — clear "this is a hint" teal accent - padding: 8px 12px 8px 14px (smaller, lighter) - font-size: 12.5px (slightly larger for readability) - margin: 4px 0 8px 0 (sits between field label and input) - .hint code { monospace, teal-300, teal-tinted background } for inline tokens - .hint strong { text-default color } for emphasis Also: label > input/select/textarea forced to display:block width:100% margin-top:6px (after the hint, hint + input collapse to margin-top:0) 2. HTML — reorder 11 labels across providers.html (7) and admin-batch-import.html (4) so the .hint span sits BEFORE the / - - 格式:base_url|api_key|requested_model_1,requested_model_2
- · 每行一条供应商帐号;多个 key 走多行即可(批量导入)。
- · 第三段 requested_model 可省略,CRM 会从 host 已发布 provider 自动推断。
- · 同 base_url 可合并多行;不同 base_url 走独立 row 即可。 -
+
diff --git a/deploy/tksea-portal/admin/providers.html b/deploy/tksea-portal/admin/providers.html index 4b852e67..968b884e 100644 --- a/deploy/tksea-portal/admin/providers.html +++ b/deploy/tksea-portal/admin/providers.html @@ -104,17 +104,17 @@