fix issues

This commit is contained in:
2026-09-02 23:57:53 +08:00
parent e3bfe0a1d5
commit 39b86b9dc9
3 changed files with 114 additions and 37 deletions
+31 -4
View File
@@ -369,9 +369,9 @@ body {
background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
box-shadow: 0 1px 4px rgba(30,40,90,0.06);
}
.model-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.model-card-name { font-weight: 600; font-size: 15px; }
.model-card-state { font-size: 11px; padding: 2px 8px; border-radius: 9px; }
.model-card-head { display: flex; align-items: baseline; gap: 8px; }
.model-card-name { font-weight: 600; font-size: 15px; flex-shrink: 0; }
.model-card-state { font-size: 11px; padding: 2px 8px; border-radius: 9px; flex-shrink: 0; }
.model-card-state.idle { background: #e3f2e6; color: #217a34; }
.model-card-state.busy { background: #fdecea; color: #b3382c; }
/* 配置已加但还没重启进运行池 */
@@ -379,7 +379,34 @@ body {
/* 点模型名打开编辑弹窗 */
.model-card-name { cursor: pointer; }
.model-card-name:active { opacity: 0.55; }
.model-card-meta { font-size: 12px; color: #888; margin-top: 4px; }
/* meta(模型 id/会话号)与名字同行,溢出省略 */
.model-card-meta { font-size: 12px; color: #888; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---- 模型池分组:父级 = 平台名 + 脱敏 Key(余额由 name+key 决定),子级 = 模型;默认折叠 ---- */
.model-group {
background: #fff; border-radius: 12px; margin-bottom: 10px; overflow: hidden;
box-shadow: 0 1px 4px rgba(30,40,90,0.06);
}
.model-group-head {
display: flex; align-items: center; gap: 8px; padding: 12px 14px;
cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.model-group-head:active { opacity: 0.7; }
.model-group-caret {
width: 15px; height: 15px; flex-shrink: 0;
stroke: #7f8db0; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
transition: transform 0.15s ease;
}
.model-group.open .model-group-caret { transform: rotate(90deg); }
.model-group-name { font-weight: 600; font-size: 14.5px; }
.model-group-key {
font-size: 11.5px; color: #8a93a6; word-break: break-all;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.model-group-meta { margin-left: auto; flex-shrink: 0; font-size: 12px; color: #888; white-space: nowrap; }
.model-group-body { padding: 0 10px 10px; border-top: 1px dashed #eef0f5; }
.model-group-body .model-card { margin: 10px 0 0; background: #fafbfd; border: 1px solid #eef0f5; box-shadow: none; }
.model-group-empty { font-size: 12px; color: #99a3b8; padding: 12px 4px 2px; text-align: center; }
/* ---- 设置页行 ---- */
/* 设置页顶部用户卡:头像在上,用户名居中,下方等宽双按钮 */