mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-15 01:01:43 +10:00
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.
This commit is contained in:
@ -96,8 +96,12 @@ export const MastheadMain: React.FC = () => {
|
||||
const { summary } = useAppSelector((state) => state.resume.present.basics);
|
||||
|
||||
return (
|
||||
<div className="px-4 pt-4">
|
||||
<Markdown>{summary}</Markdown>
|
||||
</div>
|
||||
<>
|
||||
{summary && (
|
||||
<div className="px-4 pt-4">
|
||||
<Markdown>{summary}</Markdown>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user