@@ -133,53 +133,7 @@ export default function SessionEnvVarEditor({
133133
134134 return (
135135 < div className = "space-y-4" >
136- { /* Header */ }
137- < h3 className = "text-sm font-medium text-muted-foreground" >
138- { t ( 'Environment Variables' ) }
139- </ h3 >
140-
141- { /* System variables */ }
142- { systemVars . length > 0 && (
143- < div className = "space-y-2" >
144- < h4 className = "text-xs font-medium text-muted-foreground/70 uppercase tracking-wide" >
145- { t ( 'System Variables' ) }
146- </ h4 >
147- < div className = "rounded-md border overflow-hidden" >
148- < table className = "w-full text-sm" >
149- < thead >
150- < tr className = "bg-muted/50 border-b" >
151- < th className = "text-left px-3 py-2 font-medium w-1/3" >
152- { t ( 'Key' ) }
153- </ th >
154- < th className = "text-left px-3 py-2 font-medium" >
155- { t ( 'Value' ) }
156- </ th >
157- </ tr >
158- </ thead >
159- < tbody >
160- { systemVars . map ( ( v , idx ) => (
161- < tr
162- key = { `sys-${ idx } ` }
163- className = { cn (
164- 'border-b last:border-b-0' ,
165- idx % 2 === 0 ? 'bg-background' : 'bg-muted/20' ,
166- ) }
167- >
168- < td className = "px-3 py-2 font-mono text-xs break-all" >
169- { v . key }
170- </ td >
171- < td className = "px-3 py-2 font-mono text-xs break-all text-muted-foreground" >
172- { v . value }
173- </ td >
174- </ tr >
175- ) ) }
176- </ tbody >
177- </ table >
178- </ div >
179- </ div >
180- ) }
181-
182- { /* User variables */ }
136+ { /* User variables - 放在上面 */ }
183137 < div className = "space-y-2" >
184138 < div className = "flex items-center justify-between" >
185139 < div className = "flex items-center gap-2" >
@@ -285,6 +239,47 @@ export default function SessionEnvVarEditor({
285239 </ div >
286240 ) }
287241 </ div >
242+
243+ { /* System variables - 放在下面 */ }
244+ { systemVars . length > 0 && (
245+ < div className = "space-y-2" >
246+ < h4 className = "text-xs font-medium text-muted-foreground/70 uppercase tracking-wide" >
247+ { t ( 'System Variables' ) }
248+ </ h4 >
249+ < div className = "rounded-md border overflow-hidden" >
250+ < table className = "w-full text-sm" >
251+ < thead >
252+ < tr className = "bg-muted/50 border-b" >
253+ < th className = "text-left px-3 py-2 font-medium w-1/3" >
254+ { t ( 'Key' ) }
255+ </ th >
256+ < th className = "text-left px-3 py-2 font-medium" >
257+ { t ( 'Value' ) }
258+ </ th >
259+ </ tr >
260+ </ thead >
261+ < tbody >
262+ { systemVars . map ( ( v , idx ) => (
263+ < tr
264+ key = { `sys-${ idx } ` }
265+ className = { cn (
266+ 'border-b last:border-b-0' ,
267+ idx % 2 === 0 ? 'bg-background' : 'bg-muted/20' ,
268+ ) }
269+ >
270+ < td className = "px-3 py-2 font-mono text-xs break-all" >
271+ { v . key }
272+ </ td >
273+ < td className = "px-3 py-2 font-mono text-xs break-all text-muted-foreground" >
274+ { v . value }
275+ </ td >
276+ </ tr >
277+ ) ) }
278+ </ tbody >
279+ </ table >
280+ </ div >
281+ </ div >
282+ ) }
288283 </ div >
289284 ) ;
290285}
0 commit comments