From e319dd3e3d0ab4838ba5ef29c1aedf9e93c9906f Mon Sep 17 00:00:00 2001 From: Scott Busche Date: Sun, 22 Jan 2023 17:48:00 -0600 Subject: [PATCH] fix: extra whitespace in Castform header Using the Castform template without a summary, still has extra whitespace for the summary. This commit fixes the extra whitespace to not appear when no summary is present. --- client/templates/Castform/widgets/Masthead.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client/templates/Castform/widgets/Masthead.tsx b/client/templates/Castform/widgets/Masthead.tsx index cddfa0f4..cb1be89a 100644 --- a/client/templates/Castform/widgets/Masthead.tsx +++ b/client/templates/Castform/widgets/Masthead.tsx @@ -96,8 +96,12 @@ export const MastheadMain: React.FC = () => { const { summary } = useAppSelector((state) => state.resume.present.basics); return ( -
- {summary} -
+ <> + {summary && ( +
+ {summary} +
+ )} + ); };