diff --git a/agenta-web/src/components/EvaluationTable/ABTestingEvaluationTable.tsx b/agenta-web/src/components/EvaluationTable/ABTestingEvaluationTable.tsx index adc4e7ad37..9c05bcca73 100644 --- a/agenta-web/src/components/EvaluationTable/ABTestingEvaluationTable.tsx +++ b/agenta-web/src/components/EvaluationTable/ABTestingEvaluationTable.tsx @@ -140,7 +140,7 @@ const ABTestingEvaluationTable: React.FC = ({ }, [evaluationScenarios]) const handleInputChange = ( - e: React.ChangeEvent, + e: React.ChangeEvent, id: string, inputIndex: number, ) => { @@ -306,7 +306,7 @@ const ABTestingEvaluationTable: React.FC = ({ ), dataIndex: columnKey, key: columnKey, - width: "20%", + width: "25%", render: (text: any, record: ABTestingEvaluationTableRow, rowIndex: number) => { if (text) return text if (record.outputs && record.outputs.length > 0) { @@ -345,7 +345,8 @@ const ABTestingEvaluationTable: React.FC = ({ record.inputs.length && // initial value of inputs is array with 1 element and variantInputs could contain more than 1 element record.inputs.map((input: any, index: number) => (
- handleInputChange(e, record.id, index)} diff --git a/agenta-web/src/components/EvaluationTable/SingleModelEvaluationTable.tsx b/agenta-web/src/components/EvaluationTable/SingleModelEvaluationTable.tsx index 5a1fdaad36..a07a948022 100644 --- a/agenta-web/src/components/EvaluationTable/SingleModelEvaluationTable.tsx +++ b/agenta-web/src/components/EvaluationTable/SingleModelEvaluationTable.tsx @@ -147,7 +147,7 @@ const SingleModelEvaluationTable: React.FC = ({ }, [evaluationStatus, evaluation.id]) const handleInputChange = ( - e: React.ChangeEvent, + e: React.ChangeEvent, id: string, inputIndex: number, ) => { @@ -307,7 +307,7 @@ const SingleModelEvaluationTable: React.FC = ({ ), dataIndex: columnKey, key: columnKey, - width: "20%", + width: "25%", render: (text: any, record: SingleModelEvaluationRow, rowIndex: number) => { if (text) return text if (record.outputs && record.outputs.length > 0) { @@ -346,7 +346,8 @@ const SingleModelEvaluationTable: React.FC = ({ record.inputs.length && // initial value of inputs is array with 1 element and variantInputs could contain more than 1 element record.inputs.map((input: any, index: number) => (
- handleInputChange(e, record.id, index)} diff --git a/agenta-web/src/components/Evaluations/EvaluationCardView/EvaluationInputs.tsx b/agenta-web/src/components/Evaluations/EvaluationCardView/EvaluationInputs.tsx index 09e27dfe0f..1392346622 100644 --- a/agenta-web/src/components/Evaluations/EvaluationCardView/EvaluationInputs.tsx +++ b/agenta-web/src/components/Evaluations/EvaluationCardView/EvaluationInputs.tsx @@ -7,7 +7,7 @@ const useStyles = createUseStyles({ root: { display: "flex", gap: "1rem", - flexWrap: "wrap", + flexDirection: "column", }, inputRow: { display: "flex", @@ -16,8 +16,8 @@ const useStyles = createUseStyles({ "& .ant-typography": { textTransform: "capitalize", }, - "& input": { - width: 200, + "& textarea": { + width: "100%", }, }, }) @@ -35,7 +35,8 @@ const EvaluationInputs: React.FC = ({evaluationScenario, onInputChange}) {evaluationScenario.inputs.map((ip, ix) => (
{ip.input_name}: - onInputChange(e, evaluationScenario.id, ix)}