2 Commits
2 changed files with 17 additions and 3 deletions
+15 -2
View File
@@ -43,7 +43,20 @@ body {
/* ── 布局 ── */ /* ── 布局 ── */
.layout { display: grid; grid-template-columns: 340px 1fr; gap: 16px; padding: 16px 24px; align-items: start; } .layout { display: grid; grid-template-columns: 340px 1fr; gap: 16px; padding: 16px 24px; align-items: start; }
.config-panel { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 72px; } .config-panel {
display: flex; flex-direction: column; gap: 16px;
position: sticky; top: 72px;
/* 左侧独立滚动:面板固定视口高度,鼠标在左侧滚动时只翻左侧几个块,不带动右侧 */
max-height: calc(100vh - 88px);
overflow-y: auto;
overscroll-behavior: contain;
padding-right: 6px;
scrollbar-width: thin;
scrollbar-color: var(--border) transparent;
}
.config-panel::-webkit-scrollbar { width: 8px; }
.config-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.config-panel::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.main { display: flex; flex-direction: column; gap: 16px; min-width: 0; } .main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card { .card {
@@ -309,6 +322,6 @@ pre.json-box {
@media (max-width: 1000px) { @media (max-width: 1000px) {
.layout { grid-template-columns: 1fr; } .layout { grid-template-columns: 1fr; }
.config-panel { position: static; } .config-panel { position: static; max-height: none; overflow: visible; }
.metrics { grid-template-columns: repeat(3, 1fr); } .metrics { grid-template-columns: repeat(3, 1fr); }
} }
+2 -1
View File
@@ -254,7 +254,8 @@ async function listModels() {
const box = $("#model-result"); const box = $("#model-result");
box.hidden = false; box.hidden = false;
box.className = "conn-result fail"; box.className = "conn-result fail";
box.textContent = "❌ 获取模型失败:" + e.message; box.textContent = "❌ 接口不通,请检查 Base URL / API Key 配置后重试";
console.warn("[listModels] 获取模型失败(已隐藏原始错误):", e);
} }
} }