Skip to content

Commit dbddd4f

Browse files
committed
feat: modern template's content height
1 parent f78518b commit dbddd4f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/components/templates/modern/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ const ModernTemplate: React.FC<ModernTemplateProps> = ({ data, template }) => {
4343
const otherSections = enabledSections.filter((s) => s.id !== "basic" && s.id !== "education");
4444

4545
return (
46-
<div className="grid grid-cols-3 w-full min-h-full">
46+
<div
47+
className="grid grid-cols-3 w-full min-h-full"
48+
style={{ minHeight: `calc(297mm - ${(data.globalSettings?.pagePadding || 32) * 2}px)` }}
49+
>
4750
<div className="col-span-1 p-4" style={{ backgroundColor: data.globalSettings.themeColor, color: "#ffffff", paddingTop: data.globalSettings.sectionSpacing }}>
4851
{basicSection && renderSection(basicSection.id)}
4952
{educationSection && (

0 commit comments

Comments
 (0)