diff --git a/webapp/static/css/app.css b/webapp/static/css/app.css index 22f7886..5880a9c 100644 --- a/webapp/static/css/app.css +++ b/webapp/static/css/app.css @@ -265,3 +265,39 @@ table.group-table td { border-bottom: 1px solid #f1f5f9; font-variant-numeric: t .sidebar { width: 64px; } .brand-sub, .nav-item span:not(.nav-ico), .sidebar-foot span:last-child { display: none; } } + +/* ---------- LLM 配置管理页 ---------- */ +.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; } +.profile-card { + background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); + padding: 16px; box-shadow: var(--shadow); +} +.profile-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } +.profile-card-name { font-size: 15px; font-weight: 600; } +.profile-card-actions { display: flex; gap: 6px; } +.profile-card-field { font-size: 12px; color: var(--slate); margin-top: 4px; } +.field-label { font-weight: 600; color: var(--ink); } + +/* Form */ +.profile-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; max-width: 560px; } +.form-row { display: flex; flex-direction: column; gap: 4px; } +.form-label { font-size: 13px; font-weight: 600; } +.req { color: var(--bad); } +.form-input { + border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; + font-size: 13px; font-family: inherit; width: 100%; +} +.form-input:focus { outline: none; border-color: var(--petrol); } +.form-input-sm { max-width: 120px; } +.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; } +.form-error { font-size: 12px; color: var(--bad); } +.btn-sm { padding: 4px 10px; font-size: 12px; } +.btn-danger { color: var(--bad); border-color: var(--bad); } +.btn-danger:hover { background: #fee2e2; } + +/* ---------- LLM 角色配置面板 ---------- */ +.llm-assignment-panel { border-left: 3px solid var(--petrol); } +.llm-role-rows { display: flex; flex-direction: column; gap: 10px; } +.llm-role-row { display: flex; align-items: center; gap: 14px; } +.llm-role-label { font-size: 13px; font-weight: 600; min-width: 180px; color: var(--ink); } +.llm-role-select { min-width: 240px; } diff --git a/webapp/static/index.html b/webapp/static/index.html index c270cbb..4899e87 100644 --- a/webapp/static/index.html +++ b/webapp/static/index.html @@ -25,6 +25,9 @@ +
+ + +为不同任务角色选择已保存的 LLM 配置,留空则使用场景文件中的原始配置。
+保存常用 LLM 连接参数,在运行评估时按角色选择。
+尚未添加任何 LLM 配置。
+点击「新建配置」添加第一个。
+