feat: modern template's content height

This commit is contained in:
JOYCEQL
2026-03-04 21:50:48 +08:00
parent f78518b74f
commit dbddd4f0e6
+4 -1
View File
@@ -43,7 +43,10 @@ const ModernTemplate: React.FC<ModernTemplateProps> = ({ data, template }) => {
const otherSections = enabledSections.filter((s) => s.id !== "basic" && s.id !== "education");
return (
<div className="grid grid-cols-3 w-full min-h-full">
<div
className="grid grid-cols-3 w-full min-h-full"
style={{ minHeight: `calc(297mm - ${(data.globalSettings?.pagePadding || 32) * 2}px)` }}
>
<div className="col-span-1 p-4" style={{ backgroundColor: data.globalSettings.themeColor, color: "#ffffff", paddingTop: data.globalSettings.sectionSpacing }}>
{basicSection && renderSection(basicSection.id)}
{educationSection && (