Skip to content

Commit ca52e70

Browse files
committed
feat: 更新了工具调用测试,修复了 Response API 工具调用测试无法获得最终回复的问题,更新了移动端配置界面样式
1 parent 094eab4 commit ca52e70

2 files changed

Lines changed: 628 additions & 421 deletions

File tree

assets/css/styles.css

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ body { margin: 0; font-family: system-ui, sans-serif; background: linear-gradien
1414
*::-webkit-scrollbar-corner { background: transparent; }
1515

1616
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
17+
@media (max-width: 600px) { .container { padding: 12px; } }
1718
.header { text-align: center; color: #0f172a; margin-bottom: 32px; }
1819
.header h1 { font-size: 28px; margin: 8px 0; }
1920
.header p { color: #475569; }
@@ -24,6 +25,7 @@ body { margin: 0; font-family: system-ui, sans-serif; background: linear-gradien
2425
.header .github-link svg { color: #6b7280; }
2526

2627
.main-card { background: #fff; border-radius: 16px; padding: 28px 24px 24px; box-shadow: 0 12px 24px rgba(30, 144, 255, 0.12); border: 1px solid #e5f1ff; }
28+
@media (max-width: 600px) { .main-card { padding: 16px; border-radius: 12px; } }
2729
.config-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
2830
.config-header h2 { margin: 0; font-size: 18px; color: #0f172a; }
2931

@@ -35,7 +37,7 @@ body { margin: 0; font-family: system-ui, sans-serif; background: linear-gradien
3537
.config-section { margin-bottom: 36px; }
3638
.input-row { margin-top: 16px; }
3739
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
38-
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
40+
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; gap: 12px; } }
3941

4042
.input-group { display: flex; flex-direction: column; gap: 8px; }
4143
.input-group label { font-weight: 600; color: #334155; }
@@ -60,7 +62,9 @@ body { margin: 0; font-family: system-ui, sans-serif; background: linear-gradien
6062
.muted { color: #64748b; margin: 6px 0 18px; }
6163

6264
/* 模型厂商页签 */
63-
#vendorType { display: flex; gap: 24px; border-bottom: 2px solid #eef6ff; margin-bottom: 20px; padding: 0 4px; }
65+
#vendorType { display: flex; gap: 24px; border-bottom: 2px solid #eef6ff; margin-bottom: 20px; padding: 0 4px; overflow-x: auto; scrollbar-width: none; }
66+
#vendorType::-webkit-scrollbar { display: none; }
67+
@media (max-width: 600px) { #vendorType { gap: 16px; } }
6468
#vendorType .seg-btn { background: transparent; border: none; border-radius: 0; padding: 10px 4px; color: #64748b; font-weight: 600; position: relative; transition: all 0.2s ease; }
6569
#vendorType .seg-btn::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: #1e90ff; transform: scaleX(0); transition: transform 0.2s ease; }
6670
#vendorType .seg-btn:hover { background: transparent; color: #1e90ff; }
@@ -83,6 +87,7 @@ body { margin: 0; font-family: system-ui, sans-serif; background: linear-gradien
8387
.input-textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cfe6ff; border-radius: 10px; font-size: 15px; line-height: 1.6; resize: vertical; min-height: 80px; }
8488
.input-textarea:focus { outline: none; border-color: #1e90ff; }
8589
.split-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; margin-top: 12px; }
90+
@media (max-width: 600px) { .split-columns { gap: 16px; } }
8691
.split-columns > .column { min-width: 0; overflow: hidden; }
8792
@media (max-width: 900px) { .split-columns { grid-template-columns: 1fr; } }
8893
.blocks-container, .timeline { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@@ -122,17 +127,23 @@ body { margin: 0; font-family: system-ui, sans-serif; background: linear-gradien
122127
.modal { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.65); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; }
123128
.modal.open { display: flex; opacity: 1; }
124129
.modal-content { background: #ffffff; width: 92%; max-width: 900px; margin: 0; padding: 0; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; transform: scale(0.95); transition: transform 0.2s ease; }
130+
@media (max-width: 600px) { .modal-content { width: 96%; max-height: 94vh; border-radius: 16px; } }
125131
.modal.open .modal-content { transform: scale(1); }
126132
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 32px; border-bottom: 1px solid #f1f5f9; background: #ffffff; }
133+
@media (max-width: 600px) { .modal-header { padding: 16px 20px; } }
127134
.modal-header h2 { margin: 0; font-size: 20px; font-weight: 700; color: #1e293b; }
135+
@media (max-width: 600px) { .modal-header h2 { font-size: 18px; } }
128136
.close { color: #94a3b8; font-size: 28px; font-weight: 400; cursor: pointer; line-height: 1; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: all 0.2s ease; }
129137
.close:hover { color: #ef4444; background: #fee2e2; }
130138
.config-modal-body { display: grid; grid-template-columns: 1fr 320px; flex: 1; min-height: 0; background: #f8fafc; }
131-
@media (max-width: 900px) { .config-modal-body { grid-template-columns: 1fr; } }
139+
@media (max-width: 900px) { .config-modal-body { grid-template-columns: 1fr; overflow-y: auto; display: flex; flex-direction: column; } }
132140
.modal-left { padding: 32px; overflow-y: auto; background: #ffffff; }
141+
@media (max-width: 900px) { .modal-left { overflow-y: visible; padding: 20px; flex-shrink: 0; } }
133142
.modal-right { display: flex; flex-direction: column; min-height: 0; background: #f8fafc; border-left: 1px solid #e2e8f0; padding: 24px; }
143+
@media (max-width: 900px) { .modal-right { border-left: none; border-top: 1px solid #e2e8f0; padding: 20px; flex-shrink: 0; min-height: 300px; } }
134144
.subheading { margin: 0 0 20px; color: #334155; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
135145
.config-list { flex: 1; overflow-y: auto; margin-bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 4px 8px 4px 4px; }
146+
@media (max-width: 900px) { .config-list { overflow-y: visible; } }
136147
.config-item { padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: #ffffff; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
137148
.config-item:hover { background: #ffffff; border-color: #93c5fd; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30,144,255,0.1); }
138149
.config-item.active { border-color: #3b82f6; background: #eff6ff; }
@@ -159,7 +170,8 @@ body { margin: 0; font-family: system-ui, sans-serif; background: linear-gradien
159170
.modal .input-group label { font-size: 13px; font-weight: 500; color: #64748b; margin-bottom: 8px; display: block; }
160171
.modal .input-group input { width: 100%; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; background: #f8fafc; transition: all 0.2s ease; }
161172
.modal .input-group input:focus { background: #ffffff; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
162-
.modal-actions { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #f1f5f9; }
173+
.modal-actions { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #f1f5f9; flex-wrap: wrap; }
174+
@media (max-width: 600px) { .modal-actions { gap: 8px; margin-top: 20px; padding-top: 16px; } .modal-actions .btn { flex: 1; min-width: 120px; } }
163175
.modal-actions .btn { padding: 10px 20px; font-size: 14px; }
164176

165177
/* 应用提示弹窗(自定义提示) */

0 commit comments

Comments
 (0)