From 767cac62c510a7db050b91a7ab6b0cd0c3b343d6 Mon Sep 17 00:00:00 2001 From: Guillaume Cauchois Date: Wed, 18 Dec 2024 11:09:38 +0100 Subject: [PATCH] fix(CV-PDF): left column width and display sections --- src/components/cv/CVPDF/CVPDF.styles.tsx | 4 ++-- src/components/cv/CVPDF/CVPDF.tsx | 4 ++-- .../partials/CV/PageCVContent/PageCVContent.styles.tsx | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/cv/CVPDF/CVPDF.styles.tsx b/src/components/cv/CVPDF/CVPDF.styles.tsx index b45aa67ca..f6c985ea8 100644 --- a/src/components/cv/CVPDF/CVPDF.styles.tsx +++ b/src/components/cv/CVPDF/CVPDF.styles.tsx @@ -231,8 +231,8 @@ export const StyledCVPDFPage = styled.div` `; export const StyledCVPDFProfilePicture = styled(StyledCVProfilePicture)` - width: 128px; - height: 128px; + width: 128px !important; + height: 128px !important; margin-top: ${({ verticalMargin }) => { return verticalMargin ? '20px' : 0; }}; diff --git a/src/components/cv/CVPDF/CVPDF.tsx b/src/components/cv/CVPDF/CVPDF.tsx index a6fdb5703..6d7efaab3 100644 --- a/src/components/cv/CVPDF/CVPDF.tsx +++ b/src/components/cv/CVPDF/CVPDF.tsx @@ -123,9 +123,9 @@ export const CVPDF = ({ cv, page }: CVPDFProps) => { availableSpaceOnFirstPage ); setItems({ - firstPageExperiences: cv.experiences.slice(0, nbOfExperienceFirstPage), + firstPageExperiences: cv.experiences, // all the xp on first page firstPageFormations: cv.formations.slice(0, nbOfFormationFirstPage), - secondPageExperiences: cv.formations.slice(nbOfExperienceFirstPage), + secondPageExperiences: [], // no xp on second page secondPageFormations: cv.formations.slice(nbOfFormationFirstPage), }); }, [cv]); diff --git a/src/components/partials/CV/PageCVContent/PageCVContent.styles.tsx b/src/components/partials/CV/PageCVContent/PageCVContent.styles.tsx index 93ff6cd58..065d829c0 100644 --- a/src/components/partials/CV/PageCVContent/PageCVContent.styles.tsx +++ b/src/components/partials/CV/PageCVContent/PageCVContent.styles.tsx @@ -119,7 +119,6 @@ export const StyledCVProfilePictureContainer = styled.div` export const StyledCVProfilePicture = styled.div` height: 340px; width: 340px; - background: red; position: relative; border-radius: 50%; background-color: ${COLORS.hoverBlue};