Skip to content

Commit 3d6b72a

Browse files
committed
improved styling a little, fixed overflow issues, fixed margins on icons, collums in tables now follow the same sizing
1 parent 5383763 commit 3d6b72a

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

client/src/features/cohorts/components/CohortAccordion.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const CohortAccordion = ({ cohortInfo }: CohortAccordionProps) => {
7575
<TraineeAvatar imageURL={trainee.thumbnailURL ?? ''} altText={trainee.displayName}></TraineeAvatar>
7676
</TableCell>
7777
<TableCell>{trainee.displayName}</TableCell>
78-
<TableCell sx={{ whiteSpace: 'nowrap' }}>
78+
<TableCell sx={{ whiteSpace: 'nowrap', minWidth: '240px' }}>
7979
{trainee.LearningStatus === LearningStatus.Graduated ? (
8080
<SidebarJobPath jobPath={trainee.JobPath}></SidebarJobPath>
8181
) : (
@@ -87,7 +87,7 @@ const CohortAccordion = ({ cohortInfo }: CohortAccordionProps) => {
8787
<TableCell sx={{ color: getScoreColor(trainee.averageTestScore) }}>
8888
{trainee.averageTestScore !== null ? trainee.averageTestScore.toFixed(1) : '-'}
8989
</TableCell>
90-
<TableCell sx={{ whiteSpace: 'nowrap' }} onClick={(e) => e.stopPropagation()}>
90+
<TableCell sx={{ whiteSpace: 'nowrap', textAlign: 'end' }} onClick={(e) => e.stopPropagation()}>
9191
<div>
9292
{trainee.slackID && (
9393
<IconButton aria-label="Slack Id" href={`slack://user?team=T0EJTUQ87&id=${trainee.slackID}`}>
@@ -96,7 +96,7 @@ const CohortAccordion = ({ cohortInfo }: CohortAccordionProps) => {
9696
)}
9797
{trainee.email && (
9898
<IconButton aria-label="email" href={`mailto:${trainee.email}`}>
99-
<EmailIcon sx={{ color: 'action.active', mr: 1 }} />
99+
<EmailIcon sx={{ color: 'action.active' }} />
100100
</IconButton>
101101
)}
102102
{trainee.githubHandle && (
@@ -105,12 +105,12 @@ const CohortAccordion = ({ cohortInfo }: CohortAccordionProps) => {
105105
href={`https://github.com/${trainee.githubHandle}`}
106106
target="_blank"
107107
>
108-
<GitHubIcon sx={{ color: 'action.active', mr: 1 }} />
108+
<GitHubIcon sx={{ color: 'action.active' }} />
109109
</IconButton>
110110
)}
111111
{trainee.linkedIn && (
112112
<IconButton aria-label="LinkedIn URL" href={trainee.linkedIn} target="_blank">
113-
<LinkedInIcon sx={{ color: 'action.active', mr: 1 }} />
113+
<LinkedInIcon sx={{ color: 'action.active' }} />
114114
</IconButton>
115115
)}
116116
</div>

client/src/features/trainee-profile/profile/ProfileSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const ProfileSidebar = ({ traineeId }: ProfileSidebarProps) => {
3333
gap={2}
3434
color="black"
3535
bgcolor="var(--hyf-beige)"
36-
height="100vh"
36+
height="95vh"
3737
paddingX={4}
3838
paddingY={4}
3939
>

client/src/styles/index.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ body {
5858
}
5959

6060
.App {
61-
height: 100vh;
62-
width: 100vw;
61+
min-height: 95vh;
6362
color: #333;
6463
background: #fff;
6564
}

0 commit comments

Comments
 (0)