返回 DeepSeek-Reasonix
MCPInteractionCard.css
根目录 / desktop / frontend / src / components / MCPInteractionCard.css
1 .mcp-interaction-shelf .prompt-shelf__title {
2 flex-wrap: wrap;
3 }
4
5 .mcp-interaction-shelf .prompt-shelf__badges {
6 max-width: 100%;
7 }
8
9 .mcp-interaction-shelf .prompt-shelf__badge:first-child {
10 max-width: min(320px, 48vw);
11 overflow: hidden;
12 text-overflow: ellipsis;
13 white-space: nowrap;
14 }
15
16 .mcp-interaction-message,
17 .mcp-interaction-noschema,
18 .mcp-interaction-privacy {
19 margin: 0;
20 }
21
22 .mcp-interaction-message {
23 color: var(--fg-dim);
24 font-size: 12px;
25 line-height: 1.45;
26 overflow-wrap: anywhere;
27 }
28
29 .mcp-interaction-privacy {
30 color: var(--fg-faint);
31 font-size: 10.5px;
32 line-height: 1.4;
33 }
34
35 .mcp-interaction-noschema {
36 color: var(--fg-dim);
37 font-size: 11.5px;
38 line-height: 1.45;
39 }
40
41 .mcp-interaction-url {
42 display: flex;
43 align-items: center;
44 gap: 8px;
45 min-width: 0;
46 padding: 9px 10px;
47 border: 1px solid var(--border-soft);
48 border-radius: 8px;
49 background: var(--bg-soft);
50 color: var(--fg-dim);
51 font-size: 12px;
52 }
53
54 .mcp-interaction-url strong {
55 min-width: 0;
56 overflow: hidden;
57 color: var(--fg);
58 text-overflow: ellipsis;
59 white-space: nowrap;
60 }
61
62 .structured-form {
63 display: grid;
64 grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
65 gap: 10px 12px;
66 min-width: 0;
67 }
68
69 .structured-form-field {
70 display: grid;
71 align-content: start;
72 gap: 5px;
73 min-width: 0;
74 margin: 0;
75 padding: 0;
76 border: 0;
77 }
78
79 .structured-form-field--wide {
80 grid-column: 1 / -1;
81 }
82
83 .structured-form-label {
84 min-width: 0;
85 color: var(--fg);
86 font-size: 11.5px;
87 font-weight: 600;
88 line-height: 1.35;
89 overflow-wrap: anywhere;
90 }
91
92 .structured-form-required,
93 .structured-form-error {
94 color: var(--err);
95 }
96
97 .structured-form-hint,
98 .structured-form-error,
99 .structured-form-unsupported {
100 display: block;
101 font-size: 10.5px;
102 line-height: 1.35;
103 overflow-wrap: anywhere;
104 }
105
106 .structured-form-hint {
107 color: var(--fg-faint);
108 }
109
110 .structured-form-unsupported {
111 padding: 7px 8px;
112 border: 1px solid color-mix(in srgb, var(--err) 32%, var(--border-soft));
113 border-radius: 7px;
114 background: color-mix(in srgb, var(--err) 8%, var(--bg-soft));
115 color: var(--err);
116 }
117
118 .structured-form-control {
119 box-sizing: border-box;
120 width: 100%;
121 height: 32px;
122 min-width: 0;
123 padding: 0 9px;
124 border: 1px solid var(--border);
125 border-radius: 7px;
126 outline: none;
127 background: var(--bg-elev);
128 color: var(--fg);
129 font: inherit;
130 font-size: var(--font-control-small);
131 }
132
133 .structured-form-control:hover:not(:disabled) {
134 border-color: var(--button-border-hover);
135 }
136
137 .structured-form-control:focus-visible,
138 .structured-form-checkbox:focus-visible,
139 .structured-form-option input:focus-visible {
140 outline: none;
141 border-color: var(--accent);
142 box-shadow: var(--focus-ring);
143 }
144
145 .structured-form-control[aria-invalid="true"] {
146 border-color: color-mix(in srgb, var(--err) 72%, var(--border));
147 }
148
149 .structured-form-control:disabled,
150 .structured-form-checkbox:disabled,
151 .structured-form-option input:disabled {
152 cursor: default;
153 opacity: 0.55;
154 }
155
156 .structured-form-checkbox-row,
157 .structured-form-option {
158 display: flex;
159 align-items: flex-start;
160 gap: 7px;
161 min-width: 0;
162 }
163
164 .structured-form-checkbox-row {
165 width: fit-content;
166 cursor: pointer;
167 }
168
169 .structured-form-checkbox,
170 .structured-form-option input {
171 flex: 0 0 auto;
172 width: 15px;
173 height: 15px;
174 margin: 1px 0 0;
175 accent-color: var(--accent);
176 }
177
178 .structured-form-options {
179 grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
180 gap: 6px 12px;
181 padding: 8px 9px;
182 border: 1px solid var(--border-soft);
183 border-radius: 8px;
184 background: var(--bg-soft);
185 }
186
187 .structured-form-options legend,
188 .structured-form-options .structured-form-hint,
189 .structured-form-options .structured-form-error {
190 grid-column: 1 / -1;
191 }
192
193 .structured-form-option {
194 color: var(--fg-dim);
195 cursor: pointer;
196 font-size: 11px;
197 line-height: 1.35;
198 }
199
200 .prompt-shelf-bar {
201 display: flex;
202 align-items: center;
203 gap: 8px;
204 min-width: 0;
205 }
206
207 .prompt-shelf-bar-hint {
208 flex: 1 1 auto;
209 min-width: 80px;
210 color: var(--fg-faint);
211 font-size: 10.5px;
212 line-height: 1.35;
213 overflow-wrap: anywhere;
214 }
215
216 .prompt-shelf-bar-actions {
217 display: flex;
218 flex: 0 0 auto;
219 gap: 6px;
220 }
221
222 .prompt-shelf-bar__quiet {
223 flex: 0 0 auto;
224 border-color: transparent;
225 background: transparent;
226 color: var(--fg-dim);
227 }
228
229 .prompt-shelf-bar__quiet:hover:not(:disabled) {
230 border-color: var(--border-soft);
231 background: var(--bg-soft);
232 color: var(--fg);
233 }
234
235 @media (max-width: 640px) {
236 .prompt-shelf-bar {
237 flex-wrap: wrap;
238 }
239
240 .prompt-shelf-bar-hint {
241 order: 3;
242 flex-basis: 100%;
243 }
244
245 .prompt-shelf-bar-actions {
246 flex: 1 1 auto;
247 justify-content: flex-end;
248 }
249 }
250
251 @media (max-width: 420px) {
252 .prompt-shelf-bar__quiet,
253 .prompt-shelf-bar-actions,
254 .prompt-shelf-bar-actions .btn {
255 flex: 1 1 auto;
256 }
257
258 .prompt-shelf-bar-actions {
259 width: 100%;
260 }
261 }
262
262 lines CSS