From e61e88561e4619dc78e7122ea886195af62e3c8c Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Tue, 10 Jun 2025 18:03:46 -0700 Subject: [PATCH] Fixed some Mobile UI issues --- frontend/src/components/JobMatchAnalysis.tsx | 6 +++--- frontend/src/components/ui/CandidateInfo.tsx | 10 +++++----- frontend/src/components/ui/JobInfo.tsx | 6 +++--- frontend/src/pages/JobAnalysisPage.tsx | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/JobMatchAnalysis.tsx b/frontend/src/components/JobMatchAnalysis.tsx index 60430d0..469a617 100644 --- a/frontend/src/components/JobMatchAnalysis.tsx +++ b/frontend/src/components/JobMatchAnalysis.tsx @@ -243,13 +243,13 @@ const JobMatchAnalysis: React.FC = (props: JobAnalysisProps) = }; return ( - + {variant !== "small" && } - - + + {overallScore !== 0 && <> Overall Match: diff --git a/frontend/src/components/ui/CandidateInfo.tsx b/frontend/src/components/ui/CandidateInfo.tsx index ef35099..11ecb41 100644 --- a/frontend/src/components/ui/CandidateInfo.tsx +++ b/frontend/src/components/ui/CandidateInfo.tsx @@ -56,7 +56,7 @@ const CandidateInfo: React.FC = (props: CandidateInfoProps) borderStyle: 'solid', transition: 'all 0.3s ease', flexGrow: 1, - p: 3, + p: isMobile ? 1 : 3, height: '100%', flexDirection: 'column', alignItems: 'stretch', @@ -74,8 +74,8 @@ const CandidateInfo: React.FC = (props: CandidateInfoProps) alt={`${candidate.fullName}'s profile`} sx={{ alignSelf: "flex-start", - width: 80, - height: 80, + width: isMobile ? 40 : 80, + height: isMobile ? 40 : 80, border: '2px solid #e0e0e0', }} /> @@ -128,9 +128,9 @@ const CandidateInfo: React.FC = (props: CandidateInfoProps) - + {(!isMobile || variant !== "small") && {candidate.description} - + } {variant !== "small" && <> diff --git a/frontend/src/components/ui/JobInfo.tsx b/frontend/src/components/ui/JobInfo.tsx index 112eab1..8685c89 100644 --- a/frontend/src/components/ui/JobInfo.tsx +++ b/frontend/src/components/ui/JobInfo.tsx @@ -203,13 +203,13 @@ const JobInfo: React.FC = (props: JobInfoProps) => { }} {...rest} > - + div > div > :first-of-type": { fontWeight: "bold" }, "& > div > div > :last-of-type": { mb: 0.75, mr: 1 } }}> - + { activeJob.title && Title @@ -222,7 +222,7 @@ const JobInfo: React.FC = (props: JobInfoProps) => { } - {activeJob.summary && + {!isMobile && activeJob.summary && Summary {activeJob.summary} } diff --git a/frontend/src/pages/JobAnalysisPage.tsx b/frontend/src/pages/JobAnalysisPage.tsx index f0a9987..63c2430 100644 --- a/frontend/src/pages/JobAnalysisPage.tsx +++ b/frontend/src/pages/JobAnalysisPage.tsx @@ -325,7 +325,7 @@ const JobAnalysisPage: React.FC = (props: BackstoryPageProps {analysisState && analysisState.job && - Selected Job + {!isMobile && Selected Job} } @@ -333,7 +333,7 @@ const JobAnalysisPage: React.FC = (props: BackstoryPageProps {!isMobile && } {analysisState && analysisState.candidate && - Selected Candidate + {!isMobile && Selected Candidate} }