diff --git a/agenta-web/src/components/pages/evaluations/autoEvaluation/EvaluatorsModal/ConfigureEvaluator/index.tsx b/agenta-web/src/components/pages/evaluations/autoEvaluation/EvaluatorsModal/ConfigureEvaluator/index.tsx index dc07836d05..511bd00a57 100644 --- a/agenta-web/src/components/pages/evaluations/autoEvaluation/EvaluatorsModal/ConfigureEvaluator/index.tsx +++ b/agenta-web/src/components/pages/evaluations/autoEvaluation/EvaluatorsModal/ConfigureEvaluator/index.tsx @@ -64,10 +64,8 @@ const useStyles = createUseStyles((theme: JSSTheme) => ({ formContainer: { display: "flex", flexDirection: "column", - maxWidth: 552, gap: theme.padding, - overflowY: "auto", - maxHeight: 580, + height: "100%", "& .ant-form-item": { marginBottom: 0, }, @@ -202,7 +200,7 @@ const ConfigureEvaluator = ({ } /> - + @@ -242,7 +240,7 @@ const ConfigureEvaluator = ({ - + {basicSettingsFields.length ? ( - + Parameters diff --git a/agenta-web/src/components/pages/evaluations/autoEvaluation/EvaluatorsModal/EvaluatorsModal.tsx b/agenta-web/src/components/pages/evaluations/autoEvaluation/EvaluatorsModal/EvaluatorsModal.tsx index a9e70174ed..53d99ac647 100644 --- a/agenta-web/src/components/pages/evaluations/autoEvaluation/EvaluatorsModal/EvaluatorsModal.tsx +++ b/agenta-web/src/components/pages/evaluations/autoEvaluation/EvaluatorsModal/EvaluatorsModal.tsx @@ -16,21 +16,31 @@ import {useLocalStorage} from "usehooks-ts" type EvaluatorsModalProps = {} & React.ComponentProps const useStyles = createUseStyles(() => ({ - modalWrapper: { + modalWrapper: ({current, debugEvaluator}: {current: number; debugEvaluator: boolean}) => ({ + height: "95vh", + width: `${current === 2 && !debugEvaluator ? "600px" : "90vw"} !important`, + maxWidth: "1800px", + maxHeight: "1100px", + minWidth: current === 2 && !debugEvaluator ? "600px" : "1000px", + minHeight: "800px", transition: "width 0.3s ease", + "& > div": { + height: "100%", + }, "& .ant-modal-content": { - height: 800, + height: "100%", "& .ant-modal-body": { height: "100%", }, }, - }, + }), })) const EvaluatorsModal = ({...props}: EvaluatorsModalProps) => { - const classes = useStyles() const appId = useAppId() const [current, setCurrent] = useState(0) + const [debugEvaluator, setDebugEvaluator] = useLocalStorage("isDebugSelectionOpen", false) + const classes = useStyles({current, debugEvaluator}) const [evaluators, setEvaluators] = useAtom(evaluatorsAtom) const [evaluatorConfigs, setEvaluatorConfigs] = useAtom(evaluatorConfigsAtom) const [selectedEvaluator, setSelectedEvaluator] = useState(null) @@ -51,7 +61,6 @@ const EvaluatorsModal = ({...props}: EvaluatorsModalProps) => { "list", ) const [selectedEvaluatorCategory, setSelectedEvaluatorCategory] = useState("view_all") - const [debugEvaluator, setDebugEvaluator] = useLocalStorage("isDebugSelectionOpen", false) const [selectedTestset, setSelectedTestset] = useState("") const evalConfigFetcher = () => { @@ -159,7 +168,6 @@ const EvaluatorsModal = ({...props}: EvaluatorsModalProps) => { return (