File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/components Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export const MetricDetailsSection = ({ metric }: { metric: MetricType }) => {
95
95
</ div >
96
96
97
97
{ isExpanded && (
98
- < div className = { classes . conversationBox } >
98
+ < div className = { classes . sectionContainer } >
99
99
{ hasReason && (
100
100
< div className = { classes . sectionContent } >
101
101
< div className = { classes . sectionSubHeader } > Evaluation Reason</ div >
@@ -232,22 +232,17 @@ const useStyles = makeStyles({
232
232
backgroundColor : tokens . colorNeutralBackground2 ,
233
233
cursor : 'text' ,
234
234
} ,
235
- conversationBox : {
236
- padding : '0.75rem' ,
237
- maxHeight : '20rem' ,
238
- overflow : 'auto' ,
239
- cursor : 'text' ,
240
- '& pre' : {
241
- whiteSpace : 'pre-wrap' ,
242
- wordWrap : 'break-word' ,
243
- } ,
244
- } ,
245
- chatContainer : {
235
+ sectionContainer : {
246
236
display : 'flex' ,
247
237
flexDirection : 'column' ,
248
238
gap : '0.75rem' ,
249
239
padding : '0.75rem 0' ,
240
+ cursor : 'text' ,
250
241
position : 'relative' ,
242
+ '& pre' : {
243
+ whiteSpace : 'pre-wrap' ,
244
+ wordWrap : 'break-word' ,
245
+ } ,
251
246
} ,
252
247
messageRow : {
253
248
display : 'flex' ,
@@ -348,7 +343,7 @@ export const PromptDetails = ({ messages, renderMarkdown }: {
348
343
</ div >
349
344
350
345
{ isExpanded && (
351
- < div className = { classes . chatContainer } >
346
+ < div className = { classes . sectionContainer } >
352
347
{ messages . map ( ( message , index ) => {
353
348
const isFromUserSide = isUserSide ( message . role ) ;
354
349
const messageRowClass = mergeClasses (
You can’t perform that action at this time.
0 commit comments