Skip to content

Commit 35cce90

Browse files
committed
Handle smaller screens and change the mouse pointer for the sortable column headings.
1 parent 584d7c0 commit 35cce90

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

web-ui/src/components/reports-section/checkin-report/TeamMemberMap.jsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,19 @@ const TeamMemberMap = ({ members, closed, planned, reportDate }) => {
8484

8585
members.sort(sortBy == SortOption.BY_MEMBER ? sortByName : sortByPDLName);
8686

87-
// TODO: Figure out how to do the column headers correctly.
8887
return (
8988
<Box className="team-member-map">
9089
<Box display="flex">
91-
<Box flex={2} onClick={() => { setSortBy(SortOption.BY_MEMBER); }}>
90+
<Box flex={2} onClick={() => { setSortBy(SortOption.BY_MEMBER); }}
91+
style={{ cursor: 'pointer' }}>
9292
<Typography variant="h5">Member</Typography>
9393
</Box>
94-
<Box flex={1} onClick={() => { setSortBy(SortOption.BY_PDL); }}>
94+
<Box flex={1} onClick={() => { setSortBy(SortOption.BY_PDL); }}
95+
style={{ cursor: 'pointer' }}>
9596
<Typography variant="h5">PDL</Typography>
9697
</Box>
97-
<Box flex={1}>
98+
<Box flex={1}
99+
sx={{ display: { xs: 'none', sm: 'none', md: 'grid' } }}>
98100
<Typography variant="h5">Check-In Date</Typography>
99101
</Box>
100102
<Box flex={1}>
@@ -147,7 +149,7 @@ const TeamMemberMap = ({ members, closed, planned, reportDate }) => {
147149
variant="caption"
148150
component={'time'}
149151
dateTime={getLastCheckinDate(checkins).toISOString()}
150-
sx={{ display: { xs: 'none', sm: 'grid' } }}
152+
sx={{ display: { xs: 'none', sm: 'none', md: 'grid' } }}
151153
className="team-member-map-summmary-latest-activity"
152154
>
153155
<Box sx={{ display: 'flex', flexDirection: 'column' }}>

0 commit comments

Comments
 (0)