update for ragas

This commit is contained in:
wangwei
2026-07-01 17:53:00 +08:00
parent 2bb804b059
commit 4e74e1b247
15 changed files with 507 additions and 53 deletions
+89
View File
@@ -253,6 +253,23 @@ table.group-table td { border-bottom: 1px solid #f1f5f9; font-variant-numeric: t
}
.detail-gt { color: var(--good); }
/* 历史评分小表格:本次行高亮 + 涨跌着色(绿=改善 红=退步) */
table.history-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 4px; }
table.history-table th, table.history-table td {
padding: 5px 8px; text-align: left; border-bottom: 1px solid #f1f5f9;
}
table.history-table th { color: var(--slate); font-weight: 600; border-bottom: 1px solid var(--line); }
table.history-table td { font-variant-numeric: tabular-nums; }
.history-table tr.hist-current { background: #f0f9ff; }
.history-table tr.hist-current .hist-label { font-weight: 700; color: #0369a1; }
.hist-when { white-space: nowrap; }
.hist-label { display: inline-block; }
.hist-sub { display: block; font-size: 11px; color: var(--slate-light); }
.hist-delta { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hist-delta.delta-good { color: #16a34a; }
.hist-delta.delta-bad { color: #dc2626; }
.hist-delta.delta-flat { color: var(--slate-light); }
.empty { text-align: center; padding: 60px 20px; color: var(--slate); }
.empty p { margin-bottom: 8px; }
@@ -514,6 +531,14 @@ table.group-table td { border-bottom: 1px solid #f1f5f9; font-variant-numeric: t
table.group-table td { padding: 4pt 6pt; border-bottom: 1px solid #e2e8f0; }
table.group-table th { font-weight: 700; color: #64748b; }
/* ── 历史评分表 ── */
table.history-table { width: 100%; font-size: 9pt; border-collapse: collapse; }
table.history-table th,
table.history-table td { padding: 3pt 6pt; border-bottom: 1px solid #e2e8f0; }
.history-table tr.hist-current { background: #f0f9ff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hist-delta.delta-good { color: #16a34a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hist-delta.delta-bad { color: #dc2626 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* ── 颜色保留(部分浏览器打印默认去色) ── */
.good { color: #16a34a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.warn { color: #eab308 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@@ -546,3 +571,67 @@ table.group-table td { border-bottom: 1px solid #f1f5f9; font-variant-numeric: t
.advice-md ul { padding-left: 20px; margin: 6px 0; }
.advice-md li { margin: 3px 0; font-size: 13px; }
.advice-md strong { color: var(--ink); font-weight: 600; }
/* ---------- 指标看板 Dashboard ---------- */
.dashboard-charts {
display: flex;
flex-direction: column;
gap: 20px;
}
.dashboard-chart-panel {
min-width: 0;
/* 上下布局时给图表面板稍微更宽裕的高度 */
}
.dashboard-chart-panel canvas {
max-height: 340px;
height: 320px !important;
}
/* 运行选择器列表 */
.db-run-list {
display: flex;
flex-direction: column;
gap: 5px;
max-height: 240px;
overflow-y: auto;
margin-top: 10px;
padding-right: 4px;
}
.db-run-row {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
border: 1px solid var(--line);
border-radius: 8px;
cursor: pointer;
transition: background 0.12s, border-color 0.12s;
background: var(--surface);
}
.db-run-row:hover { background: #f0fbfb; border-color: var(--petrol); }
.db-run-row:has(input:checked) {
background: #e8f7f7;
border-color: #7ecece;
}
.db-run-row input[type="checkbox"] { flex-shrink: 0; accent-color: var(--petrol); width: 15px; height: 15px; }
.db-run-label { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.db-run-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-run-chips { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.db-chip-name { color: var(--slate); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
/* 看板图表面板头:标题左 + 下拉右 对齐优化 */
.db-panel-head-bar {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 14px;
}
.db-chart-hint {
font-size: 11px;
color: var(--slate-light);
margin-top: 6px;
text-align: center;
}