返回 DeepSeek-Reasonix
ContextInjectionRow.css
根目录 / desktop / frontend / src / components / harness-chat / ContextInjectionRow.css
1 /* Ported from DeepSeek Harness c291e7961a; MIT, see LICENSE. */
2 /* Figma 10:2482: 24px Tool calls header, 4px gap, 141px code block cap.
3 SystemPromptRow reuses this sheet so both disclosures share one body. */
4
5 .dsh-ContextInjectionRow-root {
6 min-width: 0;
7 }
8
9 .dsh-ContextInjectionRow-root[data-open] {
10 padding-bottom: 4px;
11 }
12
13 .dsh-ContextInjectionRow-chevron {
14 color: var(--dsw-alias-label-secondary);
15 }
16
17 /* Separator and producer name beside the role title: ToolRow's summary geometry,
18 so the two disclosure rows keep one 24px rhythm and one separator shape. */
19 .dsh-ContextInjectionRow-sep {
20 flex: none;
21 width: 2px;
22 height: 2px;
23 margin: 0 8px;
24 border-radius: 1px;
25 background: var(--dsw-alias-label-caption);
26 }
27
28 .dsh-ContextInjectionRow-source {
29 flex: none;
30 min-width: 0;
31 overflow: hidden;
32 color: var(--dsw-alias-label-tertiary);
33 font-size: var(--dsh-content-font-size-secondary, 13px);
34 line-height: calc(24px + var(--dsh-content-font-delta, 0px));
35 text-overflow: ellipsis;
36 white-space: nowrap;
37 }
38
39 /* A notice's one-line account: the reason it rarely needs expanding. */
40 .dsh-ContextInjectionRow-summary {
41 flex: 1 1 auto;
42 min-width: 0;
43 overflow: hidden;
44 color: var(--dsw-alias-label-tertiary);
45 font-size: var(--dsh-content-font-size-secondary, 13px);
46 line-height: calc(24px + var(--dsh-content-font-delta, 0px));
47 text-overflow: ellipsis;
48 white-space: nowrap;
49 }
50
51 .dsh-ContextInjectionRow-body {
52 box-sizing: border-box;
53 /* Indent under the title, which starts at leading (16 + delta) + gap 6. */
54 width: calc(100% - 22px - var(--dsh-content-font-delta, 0px));
55 max-height: 141px;
56 margin: 4px 0 0 calc(22px + var(--dsh-content-font-delta, 0px));
57 overflow: auto;
58 padding: 10px 16px 12px 12px;
59 border: none;
60 border-radius: 8px;
61 background: var(--dsw-alias-markdown-code-block);
62 color: var(--dsw-alias-label-tertiary);
63 /* Figma 10:2482 code text: the form bodies inherit it from the scrollport. */
64 font: 400 11px/16px var(--ds-font-family-code);
65 }
66
66 lines CSS