Skip to content

Commit

Permalink
fix hobbies spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-hackin committed Feb 9, 2023
1 parent 8ecceb4 commit bcd6592
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/PDF/PDF.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@ const htmlProps: Omit<HtmlProps, 'children'> = {
},
};

const hobbiesHtmlProps = {
...htmlProps,
stylesheet: {
...htmlProps.stylesheet,
h4: { marginBottom: -10 },
h6: { marginBottom: 0 },
},
};

const PDF: React.FC<CMSData> = (props) => {
const {
achievements,
Expand All @@ -205,7 +214,6 @@ const PDF: React.FC<CMSData> = (props) => {
} = props;
const fullName = getFullName(personalInformation);
const year = new Date().getFullYear();

return (
// @ts-ignore
<Document author={fullName} title={`Résume for ${fullName}, ${year}`}>
Expand Down Expand Up @@ -351,15 +359,7 @@ const PDF: React.FC<CMSData> = (props) => {
/>
<Text>Hobbies &amp; Interests</Text>
</View>
<Html
{...htmlProps}
stylesheet={{
...htmlProps.stylesheet,
p: { marginBottom: spacers[1] },
}}
>
{hobbies.html}
</Html>
<Html {...hobbiesHtmlProps}>{hobbies.html}</Html>
</View>
</View>
</Page>
Expand Down

0 comments on commit bcd6592

Please sign in to comment.