File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed
packages/ui/src/components Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 2929
3030[data-component = "tool-error" ] {
3131 display : flex;
32- align-items : center ;
32+ align-items : start ;
3333 gap : 8px ;
3434
35- [data-slot = "icon" ] {
35+ [data-slot = "tool-error- icon" ] {
3636 color : var (--icon-critical-active );
37+ margin-top : 4px ;
3738 }
3839
39- [data-slot = "content" ] {
40+ [data-slot = "tool-error- content" ] {
4041 display : flex;
41- align-items : center ;
42+ align-items : start ;
4243 gap : 8px ;
4344 }
4445
45- [data-slot = "title" ] {
46+ [data-slot = "tool-error- title" ] {
4647 font-family : var (--font-family-sans );
4748 font-size : var (--font-size-small );
4849 font-style : normal;
5152 letter-spacing : var (--letter-spacing-normal );
5253 color : var (--ember-light-11 );
5354 text-transform : capitalize;
55+ white-space : nowrap;
5456 }
57+
58+ /* [data-slot="tool-error-message"] { */
59+ /* } */
5560}
5661
5762[data-component = "tool-output" ] {
Original file line number Diff line number Diff line change @@ -151,15 +151,17 @@ PART_MAPPING["tool"] = function ToolPartDisplay(props) {
151151 return (
152152 < Card variant = "error" >
153153 < div data-component = "tool-error" >
154- < Icon name = "circle-ban-sign" size = "small" data-slot = "icon" />
154+ < Icon name = "circle-ban-sign" size = "small" data-slot = "tool-error- icon" />
155155 < Switch >
156156 < Match when = { title } >
157- < div data-slot = "content" >
158- < div data-slot = "title" > { title } </ div >
159- < span > { rest . join ( ": " ) } </ span >
157+ < div data-slot = "tool-error- content" >
158+ < div data-slot = "tool-error- title" > { title } </ div >
159+ < span data-slot = "tool-error-message" > { rest . join ( ": " ) } </ span >
160160 </ div >
161161 </ Match >
162- < Match when = { true } > { cleaned } </ Match >
162+ < Match when = { true } >
163+ < span data-slot = "tool-error-message" > { cleaned } </ span >
164+ </ Match >
163165 </ Switch >
164166 </ div >
165167 </ Card >
You can’t perform that action at this time.
0 commit comments