diff --git a/static/js/settings.js b/static/js/settings.js index b0019c5..58acbfd 100644 --- a/static/js/settings.js +++ b/static/js/settings.js @@ -1416,7 +1416,7 @@ class SettingsManager { }); }); - // 默认展开API基础URL设置区域 + // 默认展开中转 API url 设置区域 const apiBaseUrlHeader = document.querySelector('.api-url-settings .collapsible-header'); if (apiBaseUrlHeader) { const content = apiBaseUrlHeader.nextElementSibling; diff --git a/static/style.css b/static/style.css index d01c8e4..92b14b6 100644 --- a/static/style.css +++ b/static/style.css @@ -610,7 +610,6 @@ body { font-weight: 600; color: var(--text-primary); font-size: 1rem; -} border-radius: 0.75rem; min-height: 200px; } @@ -2274,40 +2273,6 @@ button:disabled { 100% { transform: rotate(360deg); } } -/* 可折叠内容样式 */ -.collapsible-header { - display: flex; - justify-content: center; - align-items: center; - cursor: pointer; - padding-bottom: 1rem; - text-align: center; -} - -.collapsible-header h3 { - margin-bottom: 0 !important; - text-align: center; -} - -.collapsible-content { - overflow: hidden; - transition: max-height 0.5s ease, padding-top 0.3s ease, opacity 0.3s ease; - max-height: 2000px; - opacity: 1; -} - -.collapsible-content.collapsed { - max-height: 0; - padding-top: 0; - opacity: 0; - pointer-events: none; -} - -.collapsible-content:not(.collapsed) { - padding-top: 1rem; - border-top: 1px dashed var(--border-color); -} - /* 推理深度设置相关样式 */ .reasoning-setting-group { padding: 12px; @@ -5833,38 +5798,11 @@ textarea, } } -/* API基础URL设置区域 */ +/* 中转 API url 设置区域 */ .api-url-settings { margin-bottom: 20px; } -.api-url-settings .collapsible-header { - display: flex; - align-items: center; - justify-content: space-between; - padding: 10px; - background-color: var(--bg-secondary); - border-radius: 4px; - cursor: pointer; - margin-bottom: 10px; - font-weight: 500; - transition: background-color 0.2s; -} - -.api-url-settings .collapsible-header:hover { - background-color: var(--bg-hover); -} - -.api-url-settings .collapsible-content { - max-height: 0; - overflow: hidden; - transition: max-height 0.3s ease; -} - -.api-url-settings .collapsible-content.expanded { - max-height: 1000px; -} - .api-url-settings small { color: var(--text-muted); font-weight: normal; diff --git a/templates/index.html b/templates/index.html index 9bb4ad4..27ba15f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -654,21 +654,16 @@ - +
-

API基础URL设置

+

中转 API url 设置

-
- 中转API配置 (可选) - -
-
-
-
- Anthropic API URL: -
- -
+
+
+ Anthropic API URL: +
+ +
未设置