diff --git a/frontend-v2/src/features/data/DosingProtocols.tsx b/frontend-v2/src/features/data/DosingProtocols.tsx index d77554c4..d1dddf7f 100644 --- a/frontend-v2/src/features/data/DosingProtocols.tsx +++ b/frontend-v2/src/features/data/DosingProtocols.tsx @@ -236,6 +236,7 @@ const DosingProtocols: FC = ({ label="Units" value={adminUnit} onChange={handleAmountUnitChange(adminId)} + sx={{ maxWidth: '10rem'}} size="small" margin="dense" > diff --git a/frontend-v2/src/features/drug/Drug.tsx b/frontend-v2/src/features/drug/Drug.tsx index 3fbc1f0c..6b4ba9a1 100644 --- a/frontend-v2/src/features/drug/Drug.tsx +++ b/frontend-v2/src/features/drug/Drug.tsx @@ -317,7 +317,7 @@ const Drug: FC = () => { 1300 ? "70%" : "100%", maxHeight: getTableHeight({ steps: DOUBLE_TABLE_SECOND_BREAKPOINTS }), }} > @@ -359,7 +359,7 @@ const Drug: FC = () => { {isEditIndex === index ? ( { {isEditIndex === index ? ( { {isEditIndex === index ? ( +
+
{isExpanded ? ( )} +
+
{isExpanded && ( )} +
+
); diff --git a/frontend-v2/src/features/projects/Project.tsx b/frontend-v2/src/features/projects/Project.tsx index 7db9a7fe..51882e02 100644 --- a/frontend-v2/src/features/projects/Project.tsx +++ b/frontend-v2/src/features/projects/Project.tsx @@ -44,7 +44,6 @@ import EditIcon from "@mui/icons-material/Edit"; import CheckIcon from "@mui/icons-material/Check"; import CloseIcon from "@mui/icons-material/Close"; import { DescriptionModal } from "./Description"; -import { useFieldState } from "../../app/hooks"; interface Props { project: ProjectRead; @@ -245,6 +244,12 @@ const ProjectRow: FC = ({ ? "Remove shared project from your list" : "Delete Project"; + const getRowNumber = () => { + if (window.innerHeight < 800) return Math.ceil(window.innerHeight / 100); + + return 15; + } + return ( <> = ({ textFieldProps={defaultProps} size="small" rules={{ required: true, validate: validateName }} - sx={{ ...defaultSx }} + sx={{ ...defaultSx, minWidth: '10rem' }} /> ) : (