dsh-team-bots 0.3.70 → 0.3.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/assets/global-config.png +0 -0
- package/docs/assets/global-config.zh.png +0 -0
- package/docs/assets/tasks.png +0 -0
- package/docs/assets/tasks.zh.png +0 -0
- package/docs/assets/usage.png +0 -0
- package/docs/assets/usage.zh.png +0 -0
- package/package.json +1 -1
- package/src/db-migrations.js +3 -0
- package/src/db.js +1 -0
- package/src/services/runtime/session.js +10 -1
- package/src/services/scheduler.js +16 -6
- package/src/services/task-dispatch.js +28 -21
- package/src/services/task-review.js +7 -6
- package/src/services/tasks.js +16 -8
- package/src/usage.js +73 -32
- package/ui/i18n/en/settings.js +1 -0
- package/ui/i18n/zh/settings.js +1 -0
- package/ui/modules/cards.js +36 -5
- package/ui/modules/modal-forms.js +8 -8
- package/ui/styles/base.css +27 -23
- package/ui/styles/buttons.css +35 -21
- package/ui/styles/cards.css +6 -4
- package/ui/styles/chat-cards.css +32 -21
- package/ui/styles/chat-composer.css +17 -13
- package/ui/styles/chat-images.css +24 -19
- package/ui/styles/chat.css +5 -3
- package/ui/styles/frame.css +4 -2
- package/ui/styles/global-config.css +3 -2
- package/ui/styles/main.css +2 -1
- package/ui/styles/modal.css +13 -7
- package/ui/styles/settings.css +5 -3
- package/ui/styles/surfaces.css +5 -3
- package/ui/styles/tasks.css +9 -7
- package/ui/styles/toast.css +1 -1
- package/ui/styles/wide.css +6 -7
|
@@ -419,20 +419,20 @@ function modalTask(task) {
|
|
|
419
419
|
// 任务关系(DSHBOTS-58):父任务取本项目任务表里的那条,依赖只列未满足项(blockedByNames)。
|
|
420
420
|
const parentTask = (state.data?.tasks ?? []).find(item => item.id === (task.parent_task_id ?? task.parentTaskId ?? null)) ?? null
|
|
421
421
|
const blockedNames = Array.isArray(task.blockedByNames) ? task.blockedByNames : []
|
|
422
|
-
// 写范围(DSHBOTS-124
|
|
423
|
-
//
|
|
422
|
+
// 写范围(DSHBOTS-124)+染色条目(命中 .gitignore):前者是并行调度依据(互不重叠才并行),
|
|
423
|
+
// 后者进卡展示但不参与并行锁(同文件也并行);未声明(两者皆空)保守串行。
|
|
424
424
|
const writeScopes = Array.isArray(task.writeScopes) ? task.writeScopes.filter(item => typeof item === 'string' && item) : []
|
|
425
|
-
|
|
426
|
-
//
|
|
425
|
+
const ignoredScopes = Array.isArray(task.ignoredWriteScopes) ? task.ignoredWriteScopes.filter(item => typeof item === 'string' && item) : []
|
|
426
|
+
// 编辑态(DSHBOTS-155)只读/编辑两态切换;终态卡不进编辑态(与 taskUpdateScopes 终态拒改同口径)。
|
|
427
427
|
const editingScopes = state.modal?.type === 'task' && state.modal?.detail?.id === task.id && state.modal.editingScopes === true
|
|
428
|
-
// 终态卡不进编辑态——与后端 taskUpdateScopes 的终态拒改(任务已结束)同口径。
|
|
429
428
|
const scopesEditable = !['done', 'canceled'].includes(task.status)
|
|
430
|
-
const
|
|
431
|
-
|
|
429
|
+
const chip = (scope , ignored ) => `<span class="approval-chip mono${ignored ? ' scope-chip-ignored' : ''}" title="${attr(ignored ? `${t("命中 .gitignore,不参与并行锁")}: ${scope}` : scope)}">${esc(scope)}</span>`
|
|
430
|
+
const scopesView = (writeScopes.length || ignoredScopes.length)
|
|
431
|
+
? `<div class="scope-chips">${writeScopes.map(s => chip(s, false)).join('')}${ignoredScopes.map(s => chip(s, true)).join('')}</div>`
|
|
432
432
|
: `<div class="scope-empty">${t("未声明(保守串行)")}</div>`
|
|
433
433
|
const scopesEdit = `<div class="field">
|
|
434
434
|
<label id="task-write-scopes-label" for="task-write-scopes">${t("写范围路径")}</label>
|
|
435
|
-
<input class="input mono" style="width:100%" id="task-write-scopes" placeholder="${t("逗号或空格分隔路径")}" value="${attr(writeScopes.join(', '))}">
|
|
435
|
+
<input class="input mono" style="width:100%" id="task-write-scopes" placeholder="${t("逗号或空格分隔路径")}" value="${attr([...writeScopes, ...ignoredScopes].join(', '))}">
|
|
436
436
|
<div class="btn-row" style="margin-top:7px"><button class="btn small primary" type="button" data-action="update-scopes" data-task-id="${attr(task.id)}">${icon('check')}${t("保存")}</button><button class="btn small" type="button" data-action="cancel-scopes-edit">${t("取消")}</button></div>
|
|
437
437
|
<div class="hint" style="margin-top:6px">${t("保存后立即生效于排队中的运行;运行中的运行不受影响")}</div>
|
|
438
438
|
</div>`
|
package/ui/styles/base.css
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* DSH Team Bots — Team OS console.
|
|
2
2
|
Design language: one ink family, one accent, value-driven hierarchy.
|
|
3
3
|
Light and dark surfaces are stepped from the same low-chroma violet-gray family.
|
|
4
|
+
Material: relief (emboss) — surfaces share the canvas color; pressable things
|
|
5
|
+
extrude via a light NW / dark SE dual shadow and recess via its inset mirror.
|
|
4
6
|
Type: 5 sizes (24 / 18 / 15 / 13 / 12), 3 weights (400 / 500 / 600).
|
|
5
7
|
Space: 4px base, 8px rhythm. */
|
|
6
8
|
|
|
@@ -38,13 +40,14 @@
|
|
|
38
40
|
--fs-small: 0.8125rem; /* 13 meta */
|
|
39
41
|
--fs-caption: 0.75rem; /* 12 eyebrow / label */
|
|
40
42
|
|
|
41
|
-
/* surfaces: canvas -> card ->
|
|
43
|
+
/* surfaces: canvas -> card -> washes. Relief material: the card plane equals
|
|
44
|
+
the canvas, so extrusion is carried entirely by light and shadow. */
|
|
42
45
|
--bg: #e8ebf1;
|
|
43
|
-
--surface: #
|
|
46
|
+
--surface: #e8ebf1;
|
|
44
47
|
--surface-2: #eef0f6;
|
|
45
48
|
--surface-3: #e3e7ef;
|
|
46
49
|
--track: #dfe3ec; /* recessed track: board lanes, always darker than a card */
|
|
47
|
-
--sidebar: #
|
|
50
|
+
--sidebar: #e8ebf1;
|
|
48
51
|
--overlay: rgba(255, 255, 255, 0.72);
|
|
49
52
|
|
|
50
53
|
/* ink family */
|
|
@@ -92,9 +95,20 @@
|
|
|
92
95
|
--console-line: rgba(221, 224, 239, 0.12);
|
|
93
96
|
|
|
94
97
|
--code-bg: rgba(51, 54, 76, 0.05);
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
/* Relief material: light lands NW, shadow falls SE. --shadow-2/3 stay
|
|
99
|
+
directional drop shadows — they are for floating layers only (modals,
|
|
100
|
+
menus, toasts), which hover above the material instead of extruding.
|
|
101
|
+
The var() refs inside resolve at use time, so schemes retune the whole
|
|
102
|
+
system by redefining only --relief-hi / --relief-lo. */
|
|
103
|
+
--relief-hi: rgba(255, 255, 255, 0.9);
|
|
104
|
+
--relief-lo: rgba(51, 54, 76, 0.16);
|
|
105
|
+
--shadow-1: -2px -2px 5px var(--relief-hi), 2px 3px 6px var(--relief-lo);
|
|
106
|
+
--shadow-card: -5px -5px 12px var(--relief-hi), 6px 7px 16px var(--relief-lo);
|
|
107
|
+
--shadow-btn: -1px -1px 3px var(--relief-hi), 2px 2px 5px var(--relief-lo);
|
|
108
|
+
--shadow-btn-hover: -2px -2px 4px var(--relief-hi), 3px 4px 8px var(--relief-lo);
|
|
109
|
+
--shadow-inset:
|
|
110
|
+
inset 2px 2px 5px color-mix(in srgb, var(--relief-lo) 80%, transparent),
|
|
111
|
+
inset -2px -2px 5px var(--relief-hi);
|
|
98
112
|
--shadow-2:
|
|
99
113
|
0 2px 10px -2px rgba(51, 54, 76, 0.12), 0 1px 3px rgba(51, 54, 76, 0.05);
|
|
100
114
|
--shadow-3:
|
|
@@ -119,20 +133,14 @@
|
|
|
119
133
|
(其 WebView 的 prefers-color-scheme 失真恒报 light),而是给同源父文档 body 打
|
|
120
134
|
data-ds-dark-theme——util.ts resolveColorScheme() 据此同步本属性,嵌入态实时
|
|
121
135
|
跟随宿主深浅,独立态与跨源异常回落系统媒体查询。 */
|
|
122
|
-
:root[data-color-scheme="dark"] .card,
|
|
123
|
-
:root[data-color-scheme="dark"] .side-card {
|
|
124
|
-
box-shadow:
|
|
125
|
-
var(--shadow-1),
|
|
126
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
|
127
|
-
}
|
|
128
136
|
:root[data-color-scheme="dark"] {
|
|
129
137
|
color-scheme: dark;
|
|
130
138
|
--bg: #101219;
|
|
131
|
-
--surface: #
|
|
139
|
+
--surface: #101219;
|
|
132
140
|
--surface-2: #21242f;
|
|
133
141
|
--surface-3: #272a37;
|
|
134
142
|
--track: #14161f;
|
|
135
|
-
--sidebar: #
|
|
143
|
+
--sidebar: #101219;
|
|
136
144
|
--overlay: rgba(18, 19, 28, 0.76);
|
|
137
145
|
--ink: #e4e7f3;
|
|
138
146
|
--ink-2: rgba(228, 231, 243, 0.74);
|
|
@@ -161,9 +169,9 @@
|
|
|
161
169
|
--c-green: #86efac;
|
|
162
170
|
--c-gray: #9ca3af;
|
|
163
171
|
--code-bg: rgba(228, 231, 243, 0.06);
|
|
164
|
-
|
|
165
|
-
--
|
|
166
|
-
|
|
172
|
+
/* 暗色浮雕:受光面只剩微光,投影承担全部体积感 */
|
|
173
|
+
--relief-hi: rgba(255, 255, 255, 0.07);
|
|
174
|
+
--relief-lo: rgba(0, 0, 0, 0.5);
|
|
167
175
|
--shadow-2:
|
|
168
176
|
0 2px 12px -2px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
169
177
|
--shadow-3:
|
|
@@ -178,7 +186,7 @@
|
|
|
178
186
|
--surface-2: #e6e9ef;
|
|
179
187
|
--surface-3: #dce0e8;
|
|
180
188
|
--track: #dce0e8;
|
|
181
|
-
--sidebar: #
|
|
189
|
+
--sidebar: #e6e9ef;
|
|
182
190
|
--overlay: rgba(239, 241, 245, 0.78);
|
|
183
191
|
--ink: #4c4f69;
|
|
184
192
|
--ink-2: #54586f;
|
|
@@ -205,7 +213,6 @@
|
|
|
205
213
|
--c-green: #40a02b;
|
|
206
214
|
--c-gray: #7c7f92;
|
|
207
215
|
--code-bg: rgba(76, 79, 105, 0.06);
|
|
208
|
-
--shadow-1: 0 1px 2px rgba(76, 79, 105, 0.05);
|
|
209
216
|
--shadow-2:
|
|
210
217
|
0 2px 10px -2px rgba(76, 79, 105, 0.14),
|
|
211
218
|
0 1px 3px rgba(76, 79, 105, 0.06);
|
|
@@ -220,7 +227,7 @@
|
|
|
220
227
|
--surface-2: #363a4f;
|
|
221
228
|
--surface-3: #414559;
|
|
222
229
|
--track: #1e2030;
|
|
223
|
-
--sidebar: #
|
|
230
|
+
--sidebar: #181926;
|
|
224
231
|
--overlay: rgba(24, 25, 38, 0.78);
|
|
225
232
|
--ink: #cad3f5;
|
|
226
233
|
--ink-2: #b8c2ec;
|
|
@@ -247,9 +254,6 @@
|
|
|
247
254
|
--c-green: #a6da95;
|
|
248
255
|
--c-gray: #9399b2;
|
|
249
256
|
--code-bg: rgba(202, 211, 245, 0.07);
|
|
250
|
-
--shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
251
|
-
--shadow-card:
|
|
252
|
-
0 1px 2px rgba(0, 0, 0, 0.42), 0 2px 10px -3px rgba(0, 0, 0, 0.55);
|
|
253
257
|
--shadow-2:
|
|
254
258
|
0 2px 12px -2px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
255
259
|
--shadow-3:
|
package/ui/styles/buttons.css
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* ---------------------------------------------------------------- Buttons
|
|
2
2
|
Four roles, one shape. The rule that matters: a pressable thing must never
|
|
3
|
-
read as a label. Every button therefore
|
|
4
|
-
raised
|
|
5
|
-
without data-action).
|
|
6
|
-
action —
|
|
3
|
+
read as a label. Every button therefore extrudes from the canvas — resting
|
|
4
|
+
raised, hover raised higher, pressed recessed into the surface; every label
|
|
5
|
+
stays bare text (eyebrow / note / kv / side-row without data-action).
|
|
6
|
+
action — relief raised from the canvas, the default
|
|
7
7
|
emphasis — accent fill, at most one per screen
|
|
8
|
-
danger — red text on
|
|
9
|
-
icon — the glyph is the affordance, so it stays frameless */
|
|
8
|
+
danger — red text on the relief, destructive actions only
|
|
9
|
+
icon — the glyph is the affordance, so it stays flat and frameless */
|
|
10
10
|
.btn {
|
|
11
|
-
border: 1px solid
|
|
12
|
-
background: var(--surface
|
|
11
|
+
border: 1px solid transparent;
|
|
12
|
+
background: var(--surface);
|
|
13
13
|
color: var(--ink-2);
|
|
14
14
|
border-radius: 8px;
|
|
15
15
|
padding: 0 10px;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
gap: 6px;
|
|
23
23
|
white-space: nowrap;
|
|
24
24
|
cursor: pointer;
|
|
25
|
+
box-shadow: var(--shadow-btn);
|
|
25
26
|
transition:
|
|
26
27
|
background-color var(--motion-fast) var(--ease-out),
|
|
27
28
|
border-color var(--motion-fast) var(--ease-out),
|
|
@@ -30,13 +31,15 @@
|
|
|
30
31
|
transform var(--motion-instant) var(--ease-out);
|
|
31
32
|
}
|
|
32
33
|
.btn:hover {
|
|
33
|
-
background: var(--surface
|
|
34
|
-
border-color:
|
|
34
|
+
background: var(--surface);
|
|
35
|
+
border-color: transparent;
|
|
35
36
|
color: var(--ink);
|
|
37
|
+
box-shadow: var(--shadow-btn-hover);
|
|
36
38
|
}
|
|
37
|
-
/* 按下要有触觉级回应:80ms
|
|
39
|
+
/* 按下要有触觉级回应:80ms 内轻微下沉并陷入表面(外浮影翻转为内凹影)。 */
|
|
38
40
|
.btn:active {
|
|
39
41
|
transform: scale(0.97);
|
|
42
|
+
box-shadow: var(--shadow-inset);
|
|
40
43
|
}
|
|
41
44
|
.btn:disabled:active {
|
|
42
45
|
transform: none;
|
|
@@ -82,20 +85,23 @@
|
|
|
82
85
|
border-color: transparent;
|
|
83
86
|
color: var(--accent-ink);
|
|
84
87
|
font-weight: 600;
|
|
88
|
+
box-shadow: var(--shadow-btn);
|
|
85
89
|
}
|
|
86
90
|
.btn.primary:hover {
|
|
87
91
|
background: color-mix(in srgb, var(--accent) 88%, var(--ink));
|
|
88
92
|
border-color: transparent;
|
|
89
93
|
color: var(--accent-ink);
|
|
94
|
+
box-shadow: var(--shadow-btn-hover);
|
|
90
95
|
}
|
|
91
96
|
.btn.danger {
|
|
92
97
|
color: var(--danger);
|
|
93
|
-
border-color:
|
|
98
|
+
border-color: transparent;
|
|
94
99
|
}
|
|
95
100
|
.btn.danger:hover {
|
|
96
101
|
background: var(--danger-wash);
|
|
97
|
-
border-color:
|
|
102
|
+
border-color: transparent;
|
|
98
103
|
color: var(--danger);
|
|
104
|
+
box-shadow: var(--shadow-btn-hover);
|
|
99
105
|
}
|
|
100
106
|
.btn.small {
|
|
101
107
|
padding: 0 8px;
|
|
@@ -141,16 +147,19 @@
|
|
|
141
147
|
.btn:disabled {
|
|
142
148
|
opacity: 0.4;
|
|
143
149
|
cursor: default;
|
|
150
|
+
box-shadow: none;
|
|
144
151
|
}
|
|
145
152
|
.btn:disabled:hover {
|
|
146
|
-
background: var(--surface
|
|
147
|
-
border-color:
|
|
153
|
+
background: var(--surface);
|
|
154
|
+
border-color: transparent;
|
|
148
155
|
color: var(--ink-2);
|
|
156
|
+
box-shadow: none;
|
|
149
157
|
}
|
|
150
158
|
.btn.primary:disabled:hover {
|
|
151
159
|
background: var(--accent);
|
|
152
160
|
border-color: transparent;
|
|
153
161
|
color: var(--accent-ink);
|
|
162
|
+
box-shadow: none;
|
|
154
163
|
}
|
|
155
164
|
.btn-row {
|
|
156
165
|
display: flex;
|
|
@@ -159,14 +168,15 @@
|
|
|
159
168
|
flex-wrap: wrap;
|
|
160
169
|
}
|
|
161
170
|
|
|
162
|
-
/* Segmented control —
|
|
171
|
+
/* Segmented control — a recessed well holding one raised thumb. */
|
|
163
172
|
.seg {
|
|
164
173
|
display: inline-flex;
|
|
165
174
|
gap: 2px;
|
|
166
175
|
padding: 2px;
|
|
167
176
|
border-radius: 9px;
|
|
168
|
-
background: var(--surface
|
|
169
|
-
border: 1px solid
|
|
177
|
+
background: var(--surface);
|
|
178
|
+
border: 1px solid transparent;
|
|
179
|
+
box-shadow: var(--shadow-inset);
|
|
170
180
|
}
|
|
171
181
|
.seg button {
|
|
172
182
|
border: 0;
|
|
@@ -180,7 +190,8 @@
|
|
|
180
190
|
border-radius: 7px;
|
|
181
191
|
transition:
|
|
182
192
|
background-color var(--motion-fast) var(--ease-out),
|
|
183
|
-
color var(--motion-fast) var(--ease-out)
|
|
193
|
+
color var(--motion-fast) var(--ease-out),
|
|
194
|
+
box-shadow var(--motion-fast) var(--ease-out);
|
|
184
195
|
}
|
|
185
196
|
.seg button:hover {
|
|
186
197
|
color: var(--ink-2);
|
|
@@ -188,7 +199,7 @@
|
|
|
188
199
|
.seg button[aria-pressed="true"] {
|
|
189
200
|
background: var(--surface);
|
|
190
201
|
color: var(--ink);
|
|
191
|
-
box-shadow: var(--shadow-
|
|
202
|
+
box-shadow: var(--shadow-btn);
|
|
192
203
|
}
|
|
193
204
|
.seg button:disabled {
|
|
194
205
|
opacity: 0.4;
|
|
@@ -218,7 +229,10 @@
|
|
|
218
229
|
place-items: center;
|
|
219
230
|
background: var(--accent);
|
|
220
231
|
color: var(--accent-ink);
|
|
221
|
-
|
|
232
|
+
box-shadow: var(--shadow-btn);
|
|
233
|
+
transition:
|
|
234
|
+
opacity var(--motion-fast) var(--ease-out),
|
|
235
|
+
box-shadow var(--motion-fast) var(--ease-out);
|
|
222
236
|
}
|
|
223
237
|
.send-btn:hover {
|
|
224
238
|
opacity: 0.88;
|
package/ui/styles/cards.css
CHANGED
|
@@ -264,10 +264,11 @@
|
|
|
264
264
|
}
|
|
265
265
|
.proposal-body {
|
|
266
266
|
margin-top: 12px;
|
|
267
|
-
border: 1px solid
|
|
267
|
+
border: 1px solid transparent;
|
|
268
268
|
border-radius: 10px;
|
|
269
269
|
padding: 10px 12px;
|
|
270
|
-
background: var(--surface
|
|
270
|
+
background: var(--surface);
|
|
271
|
+
box-shadow: var(--shadow-inset);
|
|
271
272
|
color: var(--ink-2);
|
|
272
273
|
font: var(--fs-caption) var(--mono);
|
|
273
274
|
line-height: 1.7;
|
|
@@ -349,10 +350,11 @@
|
|
|
349
350
|
display: flex;
|
|
350
351
|
flex-direction: column;
|
|
351
352
|
gap: 10px;
|
|
352
|
-
border: 1px solid
|
|
353
|
+
border: 1px solid transparent;
|
|
353
354
|
border-radius: 10px;
|
|
354
355
|
padding: 12px;
|
|
355
|
-
background: var(--
|
|
356
|
+
background: var(--surface);
|
|
357
|
+
box-shadow: var(--shadow-1);
|
|
356
358
|
}
|
|
357
359
|
.perm-rule-card-main {
|
|
358
360
|
flex: 1;
|
package/ui/styles/chat-cards.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
五态骨架一致,只有 pending 是强调态;已决四态回中性底、正文降 --ink-2、无倒计时无按钮。
|
|
3
3
|
圆角 12(卡)/ 6(图标徽章)/ 7(chip、pill、按钮),间距 4-8-10,字号 15/13/12。 */
|
|
4
4
|
.approval-card {
|
|
5
|
-
border: 1px solid
|
|
5
|
+
border: 1px solid transparent;
|
|
6
6
|
border-left: 4px solid var(--accent);
|
|
7
7
|
border-radius: 12px;
|
|
8
8
|
padding: 10px;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
min-width: 240px;
|
|
13
13
|
max-width: 100%;
|
|
14
14
|
background: var(--surface);
|
|
15
|
+
box-shadow: var(--shadow-1);
|
|
15
16
|
}
|
|
16
17
|
/* 整行化(DSHBOTS-173):审批卡占满消息行可用宽度,右侧按钮贴行右缘,不再停在 480px 小卡上。
|
|
17
18
|
选择器带 .message-body-wrap 是为了压过基线的 max-width: min(640px, 82%) 与窄屏的 88% 覆盖——
|
|
@@ -58,8 +59,9 @@
|
|
|
58
59
|
line-height: 1.4;
|
|
59
60
|
padding: 2px 6px;
|
|
60
61
|
border-radius: 7px;
|
|
61
|
-
background: var(--surface
|
|
62
|
-
border: 1px solid
|
|
62
|
+
background: var(--surface);
|
|
63
|
+
border: 1px solid transparent;
|
|
64
|
+
box-shadow: var(--shadow-btn);
|
|
63
65
|
color: var(--ink-2);
|
|
64
66
|
max-width: 100%;
|
|
65
67
|
overflow: hidden;
|
|
@@ -148,14 +150,16 @@
|
|
|
148
150
|
align-items: center;
|
|
149
151
|
gap: 8px;
|
|
150
152
|
padding: 5px 10px;
|
|
151
|
-
border: 1px solid
|
|
153
|
+
border: 1px solid transparent;
|
|
152
154
|
border-radius: 8px;
|
|
153
155
|
background: var(--surface);
|
|
154
156
|
color: var(--ink);
|
|
155
157
|
font: 500 var(--fs-small) var(--sans);
|
|
158
|
+
box-shadow: var(--shadow-btn);
|
|
156
159
|
cursor: pointer;
|
|
160
|
+
transition: box-shadow 0.13s ease;
|
|
157
161
|
}
|
|
158
|
-
.approval-banner-btn:hover {
|
|
162
|
+
.approval-banner-btn:hover { box-shadow: var(--shadow-btn-hover); }
|
|
159
163
|
.approval-banner-btn > svg { flex: 0 0 auto; color: var(--star); }
|
|
160
164
|
.approval-banner-text { flex: 0 0 auto; }
|
|
161
165
|
.approval-banner-btn .chev { margin-left: auto; color: var(--ink-3); }
|
|
@@ -174,7 +178,7 @@
|
|
|
174
178
|
顶栏滤镜不参与滚动期重录。 */
|
|
175
179
|
will-change: transform;
|
|
176
180
|
padding: 6px;
|
|
177
|
-
border: 1px solid
|
|
181
|
+
border: 1px solid transparent;
|
|
178
182
|
border-radius: 10px;
|
|
179
183
|
background: var(--surface);
|
|
180
184
|
box-shadow: var(--shadow-3);
|
|
@@ -234,7 +238,7 @@
|
|
|
234
238
|
圆角 12(卡)/ 8(问题块、选项)/ 6(图标徽章)/ 7(pill、进度条),间距 4-6-8-10。
|
|
235
239
|
整行化与右对齐(DSHBOTS-190):对齐审批卡 D-173/D-180 口径——占满消息行、按钮与 pill 贴右缘。 */
|
|
236
240
|
.question-card {
|
|
237
|
-
border: 1px solid
|
|
241
|
+
border: 1px solid transparent;
|
|
238
242
|
border-left: 4px solid var(--accent);
|
|
239
243
|
border-radius: 12px;
|
|
240
244
|
padding: 10px;
|
|
@@ -244,6 +248,7 @@
|
|
|
244
248
|
min-width: 240px;
|
|
245
249
|
max-width: 100%;
|
|
246
250
|
background: var(--surface);
|
|
251
|
+
box-shadow: var(--shadow-1);
|
|
247
252
|
}
|
|
248
253
|
/* 整行化(DSHBOTS-190,同审批卡 D-173):双类选择器压过基线 .message-body-wrap 的
|
|
249
254
|
max-width: min(640px, 82%) 与窄屏 88% 覆盖;min-width 收缩防窄屏横向滚动。 */
|
|
@@ -282,9 +287,10 @@
|
|
|
282
287
|
flex-direction: column;
|
|
283
288
|
gap: 6px;
|
|
284
289
|
padding: 8px;
|
|
285
|
-
border: 1px solid
|
|
290
|
+
border: 1px solid transparent;
|
|
286
291
|
border-radius: 8px;
|
|
287
|
-
background: var(--surface
|
|
292
|
+
background: var(--surface);
|
|
293
|
+
box-shadow: var(--shadow-inset);
|
|
288
294
|
}
|
|
289
295
|
.question-item-title { font-size: var(--fs-body); color: var(--ink); }
|
|
290
296
|
.question-item-header { color: var(--ink-3); margin-right: 4px; }
|
|
@@ -299,20 +305,22 @@
|
|
|
299
305
|
align-items: flex-start;
|
|
300
306
|
gap: 2px;
|
|
301
307
|
padding: 5px 9px;
|
|
302
|
-
border: 1px solid
|
|
308
|
+
border: 1px solid transparent;
|
|
303
309
|
border-radius: 8px;
|
|
304
310
|
background: var(--surface);
|
|
311
|
+
box-shadow: var(--shadow-btn);
|
|
305
312
|
color: var(--ink-2);
|
|
306
313
|
font: 500 var(--fs-small) var(--sans);
|
|
307
314
|
text-align: left;
|
|
308
315
|
cursor: pointer;
|
|
309
316
|
transition:
|
|
317
|
+
box-shadow 0.12s ease,
|
|
310
318
|
background-color 0.12s ease,
|
|
311
|
-
color 0.12s ease
|
|
312
|
-
border-color 0.12s ease;
|
|
319
|
+
color 0.12s ease;
|
|
313
320
|
}
|
|
314
|
-
.question-option:hover {
|
|
315
|
-
|
|
321
|
+
.question-option:hover { box-shadow: var(--shadow-btn-hover); color: var(--ink); }
|
|
322
|
+
/* 选中 = 按下后卡在凹槽里:外浮影翻转为内凹影,语义与触觉一致。 */
|
|
323
|
+
.question-option.is-selected { background: var(--accent-wash); color: var(--accent-text); box-shadow: var(--shadow-inset); }
|
|
316
324
|
.question-option-desc { font-size: var(--fs-caption); color: var(--ink-3); font-weight: 400; }
|
|
317
325
|
.question-option.is-selected .question-option-desc { color: var(--accent-text); }
|
|
318
326
|
.question-custom { width: 100%; }
|
|
@@ -367,14 +375,16 @@
|
|
|
367
375
|
align-items: center;
|
|
368
376
|
gap: 8px;
|
|
369
377
|
padding: 5px 10px;
|
|
370
|
-
border: 1px solid
|
|
378
|
+
border: 1px solid transparent;
|
|
371
379
|
border-radius: 8px;
|
|
372
380
|
background: var(--surface);
|
|
373
381
|
color: var(--ink);
|
|
374
382
|
font: 500 var(--fs-small) var(--sans);
|
|
383
|
+
box-shadow: var(--shadow-btn);
|
|
375
384
|
cursor: pointer;
|
|
385
|
+
transition: box-shadow 0.13s ease;
|
|
376
386
|
}
|
|
377
|
-
.question-banner-btn:hover {
|
|
387
|
+
.question-banner-btn:hover { box-shadow: var(--shadow-btn-hover); }
|
|
378
388
|
.question-banner-btn > svg { flex: 0 0 auto; color: var(--accent-text); }
|
|
379
389
|
.question-banner-text { flex: 0 0 auto; }
|
|
380
390
|
.question-banner-btn .chev { margin-left: auto; color: var(--ink-3); }
|
|
@@ -393,7 +403,7 @@
|
|
|
393
403
|
顶栏滤镜不参与滚动期重录。 */
|
|
394
404
|
will-change: transform;
|
|
395
405
|
padding: 6px;
|
|
396
|
-
border: 1px solid
|
|
406
|
+
border: 1px solid transparent;
|
|
397
407
|
border-radius: 10px;
|
|
398
408
|
background: var(--surface);
|
|
399
409
|
box-shadow: var(--shadow-3);
|
|
@@ -441,19 +451,20 @@
|
|
|
441
451
|
display: inline-flex;
|
|
442
452
|
align-items: center;
|
|
443
453
|
gap: 6px;
|
|
444
|
-
border: 1px solid
|
|
454
|
+
border: 1px solid transparent;
|
|
445
455
|
border-radius: 8px;
|
|
446
|
-
background: var(--surface
|
|
456
|
+
background: var(--surface);
|
|
457
|
+
box-shadow: var(--shadow-btn);
|
|
447
458
|
padding: 4px 9px;
|
|
448
459
|
color: var(--ink-2);
|
|
449
460
|
font-size: var(--fs-small);
|
|
450
461
|
line-height: 1.2; /* 与 .task-chip strong 拉齐行高,保证「思考过程」「任务」两个 chip 高度一致 */
|
|
451
462
|
transition:
|
|
452
|
-
|
|
463
|
+
box-shadow 0.12s ease,
|
|
453
464
|
color 0.12s ease;
|
|
454
465
|
}
|
|
455
466
|
.task-chip:hover {
|
|
456
|
-
|
|
467
|
+
box-shadow: var(--shadow-btn-hover);
|
|
457
468
|
color: var(--ink);
|
|
458
469
|
}
|
|
459
470
|
.task-chip strong {
|
|
@@ -5,14 +5,18 @@
|
|
|
5
5
|
padding: 4px 12px;
|
|
6
6
|
font-size: var(--fs-small);
|
|
7
7
|
color: var(--ink-3);
|
|
8
|
-
background:
|
|
9
|
-
border: 1px solid
|
|
8
|
+
background: var(--surface);
|
|
9
|
+
border: 1px solid transparent;
|
|
10
10
|
border-radius: 999px;
|
|
11
|
+
box-shadow: var(--shadow-btn);
|
|
11
12
|
cursor: pointer;
|
|
13
|
+
transition:
|
|
14
|
+
box-shadow 0.13s ease,
|
|
15
|
+
color 0.13s ease;
|
|
12
16
|
}
|
|
13
17
|
.load-older:hover:not(:disabled) {
|
|
14
18
|
color: var(--ink);
|
|
15
|
-
|
|
19
|
+
box-shadow: var(--shadow-btn-hover);
|
|
16
20
|
}
|
|
17
21
|
.load-older:disabled {
|
|
18
22
|
opacity: 0.5;
|
|
@@ -56,7 +60,8 @@
|
|
|
56
60
|
max-width: min(640px, 82%);
|
|
57
61
|
padding: 9px 13px;
|
|
58
62
|
border-radius: 4px 12px 12px 12px;
|
|
59
|
-
background: var(--surface
|
|
63
|
+
background: var(--surface);
|
|
64
|
+
box-shadow: var(--shadow-btn);
|
|
60
65
|
color: var(--ink-2);
|
|
61
66
|
line-height: 1.7;
|
|
62
67
|
}
|
|
@@ -110,10 +115,11 @@
|
|
|
110
115
|
gap: 8px;
|
|
111
116
|
margin: 0 2px 6px;
|
|
112
117
|
padding: 5px 10px;
|
|
113
|
-
background: var(--surface
|
|
114
|
-
border: 1px solid
|
|
118
|
+
background: var(--surface);
|
|
119
|
+
border: 1px solid transparent;
|
|
115
120
|
border-left: 2px solid var(--accent);
|
|
116
121
|
border-radius: 8px;
|
|
122
|
+
box-shadow: var(--shadow-inset);
|
|
117
123
|
font-size: var(--fs-small);
|
|
118
124
|
}
|
|
119
125
|
.reply-bar-icon {
|
|
@@ -157,17 +163,15 @@
|
|
|
157
163
|
}
|
|
158
164
|
.composer-box {
|
|
159
165
|
position: relative;
|
|
160
|
-
background: var(--surface
|
|
161
|
-
border: 1px solid
|
|
166
|
+
background: var(--surface);
|
|
167
|
+
border: 1px solid transparent;
|
|
162
168
|
border-radius: 12px;
|
|
163
169
|
padding: 8px 10px;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
background-color 0.13s ease;
|
|
170
|
+
box-shadow: var(--shadow-inset);
|
|
171
|
+
transition: box-shadow 0.13s ease;
|
|
167
172
|
}
|
|
168
173
|
.composer-box:focus-within {
|
|
169
|
-
|
|
170
|
-
background: var(--surface);
|
|
174
|
+
box-shadow: var(--shadow-inset), 0 0 0 2px var(--accent);
|
|
171
175
|
}
|
|
172
176
|
/* 输入框拖高柄:贴 composer-box 上缘的窄拖拽热区(上下各约 4px),按住垂直拖动调高、双击恢复自动高度。
|
|
173
177
|
颜色全部走主题变量,明暗两套主题自动适配。 */
|
|
@@ -7,20 +7,21 @@
|
|
|
7
7
|
width: 30px;
|
|
8
8
|
height: 30px;
|
|
9
9
|
padding: 0;
|
|
10
|
-
border: 1px solid
|
|
10
|
+
border: 1px solid transparent;
|
|
11
11
|
border-radius: 8px;
|
|
12
12
|
display: inline-grid;
|
|
13
13
|
place-items: center;
|
|
14
14
|
background: var(--surface);
|
|
15
15
|
color: var(--ink-2);
|
|
16
|
+
box-shadow: var(--shadow-btn);
|
|
16
17
|
transition:
|
|
17
|
-
|
|
18
|
+
box-shadow 0.13s ease,
|
|
18
19
|
color 0.13s ease,
|
|
19
20
|
opacity 0.13s ease;
|
|
20
21
|
}
|
|
21
22
|
.attach-btn:hover {
|
|
22
|
-
background: var(--accent-wash);
|
|
23
23
|
color: var(--accent-text);
|
|
24
|
+
box-shadow: var(--shadow-btn-hover);
|
|
24
25
|
}
|
|
25
26
|
.attach-btn svg {
|
|
26
27
|
width: 15px;
|
|
@@ -48,10 +49,11 @@
|
|
|
48
49
|
width: 56px;
|
|
49
50
|
height: 56px;
|
|
50
51
|
flex: none;
|
|
51
|
-
border: 1px solid
|
|
52
|
+
border: 1px solid transparent;
|
|
52
53
|
border-radius: 8px;
|
|
53
54
|
overflow: hidden;
|
|
54
|
-
background: var(--surface
|
|
55
|
+
background: var(--surface);
|
|
56
|
+
box-shadow: var(--shadow-btn);
|
|
55
57
|
}
|
|
56
58
|
.image-thumb-img {
|
|
57
59
|
display: block;
|
|
@@ -121,18 +123,19 @@
|
|
|
121
123
|
gap: 4px;
|
|
122
124
|
width: 112px;
|
|
123
125
|
padding: 4px;
|
|
124
|
-
border: 1px solid
|
|
126
|
+
border: 1px solid transparent;
|
|
125
127
|
border-radius: 9px;
|
|
126
|
-
background: var(--surface
|
|
128
|
+
background: var(--surface);
|
|
129
|
+
box-shadow: var(--shadow-1);
|
|
127
130
|
color: var(--ink-2);
|
|
128
131
|
cursor: pointer;
|
|
129
132
|
text-align: left;
|
|
130
133
|
transition:
|
|
131
|
-
|
|
134
|
+
box-shadow 0.13s ease,
|
|
132
135
|
color 0.13s ease;
|
|
133
136
|
}
|
|
134
137
|
.msg-image-tile:hover {
|
|
135
|
-
|
|
138
|
+
box-shadow: var(--shadow-btn-hover);
|
|
136
139
|
color: var(--ink);
|
|
137
140
|
}
|
|
138
141
|
/* 缩略图与图标占位同尺寸:未取到图时瓦片形状不变,不跳动。 */
|
|
@@ -206,7 +209,7 @@
|
|
|
206
209
|
display: flex;
|
|
207
210
|
flex-direction: column;
|
|
208
211
|
background: var(--surface);
|
|
209
|
-
border: 1px solid
|
|
212
|
+
border: 1px solid transparent;
|
|
210
213
|
border-radius: 12px;
|
|
211
214
|
box-shadow: var(--shadow-3);
|
|
212
215
|
overflow: hidden;
|
|
@@ -271,7 +274,7 @@
|
|
|
271
274
|
left: 0;
|
|
272
275
|
right: 0;
|
|
273
276
|
background: var(--surface);
|
|
274
|
-
border: 1px solid
|
|
277
|
+
border: 1px solid transparent;
|
|
275
278
|
border-radius: 12px;
|
|
276
279
|
box-shadow: var(--shadow-2);
|
|
277
280
|
max-height: 300px;
|
|
@@ -349,9 +352,9 @@
|
|
|
349
352
|
.side-card {
|
|
350
353
|
padding: 14px 16px;
|
|
351
354
|
background: var(--surface);
|
|
352
|
-
border: 1px solid
|
|
355
|
+
border: 1px solid transparent;
|
|
353
356
|
border-radius: 12px;
|
|
354
|
-
box-shadow: var(--shadow-
|
|
357
|
+
box-shadow: var(--shadow-card);
|
|
355
358
|
}
|
|
356
359
|
.side-card-head {
|
|
357
360
|
display: flex;
|
|
@@ -563,20 +566,22 @@
|
|
|
563
566
|
justify-content: flex-start;
|
|
564
567
|
gap: 0;
|
|
565
568
|
padding: 16px;
|
|
566
|
-
border: 1px solid
|
|
569
|
+
border: 1px solid transparent;
|
|
567
570
|
border-radius: 12px;
|
|
568
571
|
background: var(--surface);
|
|
569
|
-
box-shadow: var(--shadow-
|
|
572
|
+
box-shadow: var(--shadow-card);
|
|
570
573
|
overflow: hidden;
|
|
571
|
-
transition:
|
|
574
|
+
transition: box-shadow 0.15s ease;
|
|
572
575
|
}
|
|
576
|
+
/* 悬停用刻线描边+原浮雕(不是换影),键盘 focus-within 同待遇。 */
|
|
573
577
|
.member-card:hover,
|
|
574
578
|
.member-card:focus-within {
|
|
575
|
-
|
|
576
|
-
box-shadow: var(--shadow-2);
|
|
579
|
+
box-shadow: var(--shadow-card), 0 0 0 1px var(--line-2);
|
|
577
580
|
}
|
|
578
581
|
.member-card.is-owner {
|
|
579
|
-
|
|
582
|
+
box-shadow:
|
|
583
|
+
var(--shadow-card),
|
|
584
|
+
0 0 0 1px color-mix(in srgb, var(--c-violet) 42%, transparent);
|
|
580
585
|
}
|
|
581
586
|
.member-card-top {
|
|
582
587
|
display: flex;
|