File tree Expand file tree Collapse file tree
packages/ui/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 justify-content : flex-start;
99
1010 [data-slot = "basic-tool-tool-trigger-content" ] {
11- flex : 1 1 auto;
12- width : 100% ;
11+ flex : 0 1 auto;
12+ width : auto;
13+ max-width : calc (100% - 24px );
1314 min-width : 0 ;
1415 display : flex;
1516 align-items : center;
5152 }
5253
5354 [data-slot = "basic-tool-tool-info" ] {
54- flex : 1 1 auto;
55+ flex : 0 1 auto;
5556 min-width : 0 ;
57+ max-width : 100% ;
5658 font-size : 14px ;
5759 }
5860
5961 [data-slot = "basic-tool-tool-info-structured" ] {
60- flex : 1 1 auto;
61- width : 100% ;
62+ flex : 0 1 auto;
63+ width : auto;
64+ max-width : 100% ;
6265 min-width : 0 ;
63- display : flex;
66+ display : inline- flex;
6467 align-items : center;
6568 gap : 8px ;
66- justify-content : space-between ;
69+ justify-content : flex-start ;
6770 }
6871
6972 [data-slot = "basic-tool-tool-info-main" ] {
155158 letter-spacing : var (--letter-spacing-normal );
156159 color : var (--text-base );
157160 }
161+
162+ [data-slot = "basic-tool-tool-action" ] {
163+ display : inline-flex;
164+ align-items : center;
165+ flex-shrink : 0 ;
166+ }
158167}
Original file line number Diff line number Diff line change @@ -174,7 +174,9 @@ export function BasicTool(props: BasicToolProps) {
174174 </ Show >
175175 </ Show >
176176 </ div >
177- < Show when = { ! pending ( ) && trigger ( ) . action } > { trigger ( ) . action } </ Show >
177+ < Show when = { ! pending ( ) && trigger ( ) . action } >
178+ < span data-slot = "basic-tool-tool-action" > { trigger ( ) . action } </ span >
179+ </ Show >
178180 </ div >
179181 ) }
180182 </ Match >
Original file line number Diff line number Diff line change 424424 display : flex;
425425 align-items : center;
426426 justify-content : space-between;
427- gap : 8 px ;
427+ gap : 12 px ;
428428 width : 100% ;
429429
430430 [data-slot = "message-part-title-area" ] {
You can’t perform that action at this time.
0 commit comments