Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix(resume): prevent orphaned section headings at page break (#2851)

Christian Pojoni775f625f6ec3
diff --git a/src/components/resume/shared/page-section.tsx b/src/components/resume/shared/page-section.tsx
index 2065a1c2a..118bb43d6 100644
--- a/src/components/resume/shared/page-section.tsx
+++ b/src/components/resume/shared/page-section.tsx
@@ -21,7 +21,9 @@ export function PageSection<T extends SectionType>({ type, className, children }
return (
<section className={cn(`page-section page-section-${type}`, className)}>
- <h6 className="mb-1.5 text-(--page-primary-color)">{section.title || getSectionTitle(type)}</h6>
+ <h6 className="mb-1.5 text-(--page-primary-color) print:break-after-avoid">
+ {section.title || getSectionTitle(type)}
+ </h6>
<div
className="section-content grid gap-x-(--page-gap-x) gap-y-(--page-gap-y)"