diff --git a/src/components/AllocationManager/AllocationManager.jsx b/src/components/AllocationManager/AllocationManager.jsx index f1fab6b..ec2b320 100755 --- a/src/components/AllocationManager/AllocationManager.jsx +++ b/src/components/AllocationManager/AllocationManager.jsx @@ -24,6 +24,7 @@ const AllocationManager = props => { padding: '12px', borderRadius: '4px' })} + className="h-100 d-flex flex-column" > {title} diff --git a/src/components/MDTransferList/index.js b/src/components/MDTransferList/index.js index 0058bd4..3767b7d 100644 --- a/src/components/MDTransferList/index.js +++ b/src/components/MDTransferList/index.js @@ -36,6 +36,10 @@ const useStyles = makeStyles({ '& .MuiCheckbox-root': { paddingLeft: '0px' } + }, + maxHeight: { + maxHeight: '20rem', + overflow: 'auto' } }); @@ -106,7 +110,7 @@ export default function TransferList({list, initlist, matchProp, onChange}) { }; const customList = items => ( - + {items.map((item, key) => { const value = item.name; const labelId = `transfer-list-item-${value}-label`; @@ -137,7 +141,7 @@ export default function TransferList({list, initlist, matchProp, onChange}) { ); return ( - + Unassigned diff --git a/src/components/Toggles/Toggles.jsx b/src/components/Toggles/Toggles.jsx index 7d5cdac..26436cd 100755 --- a/src/components/Toggles/Toggles.jsx +++ b/src/components/Toggles/Toggles.jsx @@ -17,11 +17,15 @@ const useStyles = makeStyles(() => ({ '& .MuiSwitch-root': { margin: '0' } + }, + maxHeight: { + maxHeight: '20rem', + overflow: 'auto' } })); const Toggles = props => { - const {boxSx, inittoggles, md, onChange, title, toggles, typoComponent, typoSx, typoVariant, xs} = props; + const {boxSx, gridStyleOverride, inittoggles, md, onChange, title, toggles, typoComponent, typoSx, typoVariant, xs} = props; const [toggleState, updateToggleState] = useState({}); const classes = useStyles(); @@ -49,19 +53,20 @@ const Toggles = props => { ; }); - return + return {title || 'Title'} - {toggles && switchRenders(toggles)} + {toggles && switchRenders(toggles)} ; }; Toggles.propTypes = { boxSx: PropTypes.object, + gridStyleOverride: PropTypes.object, inittoggles: PropTypes.string, md: PropTypes.number, onChange: PropTypes.func, diff --git a/src/pages/createEditUser/index.js b/src/pages/createEditUser/index.js index ea74d40..bee2327 100644 --- a/src/pages/createEditUser/index.js +++ b/src/pages/createEditUser/index.js @@ -474,9 +474,10 @@ function CreateEditUser(props) { onChange={(val) => formik.handleChange('inventories')(val)} /> - +