From 2d61c6f2de7270c4da9d3d4e76c649960509229b Mon Sep 17 00:00:00 2001 From: ali asaria <aliasaria@users.noreply.github.com> Date: Tue, 4 Feb 2025 12:06:47 -0500 Subject: [PATCH] tiny icon next to score --- src/renderer/components/Experiment/Eval/EvalJobsTable.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/Experiment/Eval/EvalJobsTable.tsx b/src/renderer/components/Experiment/Eval/EvalJobsTable.tsx index 13394701..68f52b87 100644 --- a/src/renderer/components/Experiment/Eval/EvalJobsTable.tsx +++ b/src/renderer/components/Experiment/Eval/EvalJobsTable.tsx @@ -8,7 +8,7 @@ import { Table, Typography, } from '@mui/joy'; -import { Trash2Icon } from 'lucide-react'; +import { ChartColumnBigIcon, FileDigitIcon, Trash2Icon } from 'lucide-react'; import { useState, useEffect } from 'react'; import useSWR from 'swr'; import * as chatAPI from '../../../lib/transformerlab-api-sdk'; @@ -47,13 +47,17 @@ function RenderScore({ score }) { return scoreArray.map((score, idx) => ( <> + {' '} <Chip key={idx} color="success" variant="outlined" sx={{ marginRight: '4px' }} > - {score?.type}: {score?.score.toFixed(5)} + <span style={{ display: 'flex', alignItems: 'center' }}> + <ChartColumnBigIcon size="14px" style={{ marginRight: '3px' }} />{' '} + {score?.type}: {score?.score.toFixed(5)} + </span> </Chip> <br /> </> -- GitLab