mirror of
https://github.com/Zippland/Snap-Solver.git
synced 2026-02-15 16:26:04 +08:00
refactor(settings): update API URL settings naming and simplify collapsible UI
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user