diff --git a/src/components/Cell.jsx b/src/components/Cell.jsx index 15402be..236fa95 100644 --- a/src/components/Cell.jsx +++ b/src/components/Cell.jsx @@ -58,9 +58,9 @@ export default function Cell({ label, type, key, isSelectable, onRemove }) { borderBottomRightRadius: 0, borderTopLeftRadius: type === 'community' ? theme.spacing(2) : 0, borderBottomLeftRadius: type === 'community' ? theme.spacing(2) : 0, - padding: 3, bgcolor: key === hoverRow ? 'primary.cellHoverBg' : 'primary.tan', height: { xs: 120, md: 50 }, + minWidth: {xs: 50, md: 150 }, justifyContent: 'center', }} > diff --git a/src/components/DropDownSelector.jsx b/src/components/DropDownSelector.jsx index cbbf2d2..439ca00 100644 --- a/src/components/DropDownSelector.jsx +++ b/src/components/DropDownSelector.jsx @@ -3,6 +3,7 @@ import Menu from '@mui/material/Menu'; import MenuItem from '@mui/material/MenuItem'; import Button from '@mui/material/Button'; import { styled } from '@mui/material/styles'; +import { Typography } from '@mui/material'; // Styled components const AddButton = styled(Button)(({ theme }) => ({ @@ -87,8 +88,12 @@ const DropDownSelector = ({ availableSelections, selections, setSelections, opti aria-expanded={open ? 'true' : undefined} onClick={handleClick} startIcon={+} + sx={{ width: "100%" }} > - Add another {option} + + Add another  + + {option} ({ height: '200px', alignContent: 'center', - textAlign: 'center', })); export default HeaderBox; diff --git a/src/components/PractitionerPane.jsx b/src/components/PractitionerPane.jsx index 4410e55..8504be2 100644 --- a/src/components/PractitionerPane.jsx +++ b/src/components/PractitionerPane.jsx @@ -14,9 +14,9 @@ const matchVals = (commCats, practCats) => { return commCats.map((commCat) => practCats.includes(commCat)); }; +// Person icon (mobile), school icon (mobile) const StyledBox = styled(Box)({ height: 45, - maxWidth: '80%', }); function StrTrainedBadge({ isTrained }) { @@ -35,7 +35,10 @@ function StrTrainedBadge({ isTrained }) { xs: 'primary.lightBlue', md: 'primary.main', }, - color: 'primary.lightGray', + color: { + xs: 'primary.main', + md: 'primary.lightGray', + }, flexGrow: 'space-around', verticalAlign: 'middle', justifyContent: 'center', @@ -80,7 +83,18 @@ function PractitionerHeader({ strTrained, practitioner, poppedPractitioner, setP }; return ( - @@ -102,6 +116,7 @@ function PractitionerHeader({ strTrained, practitioner, poppedPractitioner, setP xs: 'inherit', md: 'none', }, + color: "primary.lightBlue", }} /> @@ -116,6 +131,8 @@ function PractitionerHeader({ strTrained, practitioner, poppedPractitioner, setP overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', + textWrap: 'auto', + textAlign: 'center', }} > {practitioner.org} @@ -154,7 +171,7 @@ export default function PractitionerPane({ community, practitioner, poppedPracti return ( diff --git a/src/components/svg/PractMatchSymbol.jsx b/src/components/svg/PractMatchSymbol.jsx index 292192f..ff1ced5 100644 --- a/src/components/svg/PractMatchSymbol.jsx +++ b/src/components/svg/PractMatchSymbol.jsx @@ -15,13 +15,9 @@ export default function PractMatchSymbol({ label }) { { diff --git a/src/pages/SelfServicePage.jsx b/src/pages/SelfServicePage.jsx index 49af2bd..76b2711 100644 --- a/src/pages/SelfServicePage.jsx +++ b/src/pages/SelfServicePage.jsx @@ -114,7 +114,9 @@ export default function SelfServicePage() { gap={1} sx={{ bgcolor: theme.palette.primary.lightGray }} > - + + {/* My Community */} + + {/* Practitioners */} - + {' '} @@ -140,6 +143,7 @@ export default function SelfServicePage() { Matched Practitioners + {hasMorePractitioners && ( )} + {/* matched practitioners list */} + {/* each individual box */} {visiblePractitioners.map((pract, index) => ( ))} - +