@@ -16,15 +16,15 @@ function ResetButton({ handleReset }: { handleReset: () => void }) {
16
16
variant = "ghost"
17
17
className = "flex items-center justify-center gap-2 text-gray-500 hover:text-red-500"
18
18
>
19
- < Undo2 className = "w -4 h -4" />
19
+ < Undo2 className = "h -4 w -4" />
20
20
< span > Reset</ span >
21
21
</ Button >
22
22
) ;
23
23
}
24
24
25
25
function ArgsRenderer ( { args } : { args : Record < string , any > } ) {
26
26
return (
27
- < div className = "flex flex-col gap-6 items-start w-full " >
27
+ < div className = "flex w-full flex-col items-start gap-6 " >
28
28
{ Object . entries ( args ) . map ( ( [ k , v ] ) => {
29
29
let value = "" ;
30
30
if ( [ "string" , "number" ] . includes ( typeof v ) ) {
@@ -34,11 +34,14 @@ function ArgsRenderer({ args }: { args: Record<string, any> }) {
34
34
}
35
35
36
36
return (
37
- < div key = { `args-${ k } ` } className = "flex flex-col gap-1 items-start" >
38
- < p className = "text-sm leading-[18px] text-gray-600 text-wrap" >
37
+ < div
38
+ key = { `args-${ k } ` }
39
+ className = "flex flex-col items-start gap-1"
40
+ >
41
+ < p className = "text-sm leading-[18px] text-wrap text-gray-600" >
39
42
{ prettifyText ( k ) } :
40
43
</ p >
41
- < span className = "text-[13px] leading-[18px] text-black bg-zinc-100 rounded-xl p-3 w-full max-w-full " >
44
+ < span className = "w-full max-w-full rounded-xl bg-zinc-100 p-3 text-[13px] leading-[18px] text-black " >
42
45
< MarkdownText > { value } </ MarkdownText >
43
46
</ span >
44
47
</ div >
@@ -104,9 +107,9 @@ function ResponseComponent({
104
107
} ;
105
108
106
109
return (
107
- < div className = "flex flex-col gap-4 p-6 items-start w-full rounded-xl border-[1px] border-gray-300" >
108
- < div className = "flex items-center justify-between w-full " >
109
- < p className = "font-semibold text-black text-base " >
110
+ < div className = "flex w-full flex-col items-start gap-4 rounded-xl border-[1px] border-gray-300 p-6 " >
111
+ < div className = "flex w-full items-center justify-between" >
112
+ < p className = "text-base font-semibold text-black" >
110
113
Respond to assistant
111
114
</ p >
112
115
< ResetButton
@@ -120,8 +123,8 @@ function ResponseComponent({
120
123
< ArgsRenderer args = { interruptValue . action_request . args } />
121
124
) }
122
125
123
- < div className = "flex flex-col gap-[6px] items-start w-full " >
124
- < p className = "text-sm min-w-fit font-medium" > Response</ p >
126
+ < div className = "flex w-full flex-col items-start gap-[6px] " >
127
+ < p className = "min-w-fit text-sm font-medium" > Response</ p >
125
128
< Textarea
126
129
disabled = { streaming }
127
130
value = { res . args }
@@ -132,8 +135,12 @@ function ResponseComponent({
132
135
/>
133
136
</ div >
134
137
135
- < div className = "flex items-center justify-end w-full gap-2" >
136
- < Button variant = "brand" disabled = { streaming } onClick = { handleSubmit } >
138
+ < div className = "flex w-full items-center justify-end gap-2" >
139
+ < Button
140
+ variant = "brand"
141
+ disabled = { streaming }
142
+ onClick = { handleSubmit }
143
+ >
137
144
Send Response
138
145
</ Button >
139
146
</ div >
@@ -154,7 +161,7 @@ function AcceptComponent({
154
161
) => Promise < void > ;
155
162
} ) {
156
163
return (
157
- < div className = "flex flex-col gap-4 items-start w-full p-6 rounded-lg border-[1px] border-gray-300" >
164
+ < div className = "flex w-full flex-col items-start gap-4 rounded-lg border-[1px] border-gray-300 p-6 " >
158
165
{ actionRequestArgs && Object . keys ( actionRequestArgs ) . length > 0 && (
159
166
< ArgsRenderer args = { actionRequestArgs } />
160
167
) }
@@ -251,9 +258,9 @@ function EditAndOrAcceptComponent({
251
258
} ;
252
259
253
260
return (
254
- < div className = "flex flex-col gap-4 items-start w-full p-6 rounded-lg border-[1px] border-gray-300" >
255
- < div className = "flex items-center justify-between w-full " >
256
- < p className = "font-semibold text-black text-base " > { header } </ p >
261
+ < div className = "flex w-full flex-col items-start gap-4 rounded-lg border-[1px] border-gray-300 p-6 " >
262
+ < div className = "flex w-full items-center justify-between" >
263
+ < p className = "text-base font-semibold text-black" > { header } </ p >
257
264
< ResetButton handleReset = { handleReset } />
258
265
</ div >
259
266
@@ -276,11 +283,11 @@ function EditAndOrAcceptComponent({
276
283
277
284
return (
278
285
< div
279
- className = "flex flex-col gap-1 items-start w-full h-full px-[1px]"
286
+ className = "flex h-full w-full flex-col items-start gap-1 px-[1px]"
280
287
key = { `allow-edit-args--${ k } -${ idx } ` }
281
288
>
282
- < div className = "flex flex-col gap-[6px] items-start w-full " >
283
- < p className = "text-sm min-w-fit font-medium" > { prettifyText ( k ) } </ p >
289
+ < div className = "flex w-full flex-col items-start gap-[6px] " >
290
+ < p className = "min-w-fit text-sm font-medium" > { prettifyText ( k ) } </ p >
284
291
< Textarea
285
292
disabled = { streaming }
286
293
className = "h-full"
@@ -294,8 +301,12 @@ function EditAndOrAcceptComponent({
294
301
) ;
295
302
} ) }
296
303
297
- < div className = "flex items-center justify-end w-full gap-2" >
298
- < Button variant = "brand" disabled = { streaming } onClick = { handleSubmit } >
304
+ < div className = "flex w-full items-center justify-end gap-2" >
305
+ < Button
306
+ variant = "brand"
307
+ disabled = { streaming }
308
+ onClick = { handleSubmit }
309
+ >
299
310
{ buttonText }
300
311
</ Button >
301
312
</ div >
@@ -480,12 +491,12 @@ export function InboxItemInput({
480
491
} ;
481
492
482
493
return (
483
- < div className = "w-full flex flex-col items-start justify-start gap-2" >
494
+ < div className = "flex w-full flex-col items-start justify-start gap-2" >
484
495
{ showArgsOutsideActionCards && (
485
496
< ArgsRenderer args = { interruptValue . action_request . args } />
486
497
) }
487
498
488
- < div className = "flex flex-col gap-2 items-start w-full " >
499
+ < div className = "flex w-full flex-col items-start gap-2 " >
489
500
< EditAndOrAccept
490
501
humanResponse = { humanResponse }
491
502
streaming = { streaming }
@@ -495,7 +506,7 @@ export function InboxItemInput({
495
506
handleSubmit = { handleSubmit }
496
507
/>
497
508
{ supportsMultipleMethods ? (
498
- < div className = "flex gap -3 items-center mx-auto mt -3" >
509
+ < div className = "mx-auto mt -3 flex items-center gap -3" >
499
510
< Separator className = "w-[full]" />
500
511
< p className = "text-sm text-gray-500" > Or</ p >
501
512
< Separator className = "w-full" />
@@ -511,7 +522,7 @@ export function InboxItemInput({
511
522
/>
512
523
{ streaming && < p className = "text-sm text-gray-600" > Running...</ p > }
513
524
{ streamFinished && (
514
- < p className = "text-base text-green-600 font-medium " >
525
+ < p className = "text-base font-medium text-green-600" >
515
526
Successfully finished Graph invocation.
516
527
</ p >
517
528
) }
0 commit comments