fix(editorial): unify white background for PDF export

Set the editorial template background to pure white so web preview and exported PDFs render consistently without off-white page edges. Refresh the editorial template snapshots and manifest cache keys to match the updated appearance.
This commit is contained in:
Jul1en_lin
2026-04-19 01:45:39 +08:00
committed by siyue
parent 4bd98e7aa0
commit 5d7b9fc29d
5 changed files with 5 additions and 5 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 KiB

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 452 KiB

After

Width:  |  Height:  |  Size: 432 KiB

+1 -1
View File
@@ -10,7 +10,7 @@ export const editorialConfig: ResumeTemplate = {
primary: "#000000",
secondary: "#666666",
text: "#1a1a1a",
background: "#FAF8F5",
background: "#FFFFFF",
},
spacing: {
sectionGap: 32,
+1 -1
View File
@@ -55,7 +55,7 @@ const EditorialTemplate: React.FC<EditorialTemplateProps> = ({ data, template })
<div
className="flex flex-col min-h-[297mm] text-[#1a1a1a] editorial-print-container"
style={{
backgroundColor: colorScheme.background || "#FAF8F5",
backgroundColor: colorScheme.background || "#FFFFFF",
color: colorScheme.text || "#1a1a1a",
margin: `-${data.globalSettings?.pagePadding || 0}px`,
padding: `${data.globalSettings?.pagePadding || 0}px`,
+3 -3
View File
@@ -1,6 +1,6 @@
export const TEMPLATE_SNAPSHOT_MANIFEST = {
"version": 1,
"generatedAt": "2026-03-22T15:40:35.007Z",
"generatedAt": "2026-04-18T17:37:35.391Z",
"locales": {
"zh": {
"classic": "/template-snapshots/zh/classic.png?v=2026-03-22T15%3A40%3A35.007Z",
@@ -10,7 +10,7 @@ export const TEMPLATE_SNAPSHOT_MANIFEST = {
"minimalist": "/template-snapshots/zh/minimalist.png?v=2026-03-22T15%3A40%3A35.007Z",
"elegant": "/template-snapshots/zh/elegant.png?v=2026-03-22T15%3A40%3A35.007Z",
"creative": "/template-snapshots/zh/creative.png?v=2026-03-22T15%3A40%3A35.007Z",
"editorial": "/template-snapshots/zh/editorial.png?v=2026-03-22T15%3A40%3A35.007Z"
"editorial": "/template-snapshots/zh/editorial.png?v=2026-04-18T17%3A37%3A35.391Z"
},
"en": {
"classic": "/template-snapshots/en/classic.png?v=2026-03-22T15%3A40%3A35.007Z",
@@ -20,7 +20,7 @@ export const TEMPLATE_SNAPSHOT_MANIFEST = {
"minimalist": "/template-snapshots/en/minimalist.png?v=2026-03-22T15%3A40%3A35.007Z",
"elegant": "/template-snapshots/en/elegant.png?v=2026-03-22T15%3A40%3A35.007Z",
"creative": "/template-snapshots/en/creative.png?v=2026-03-22T15%3A40%3A35.007Z",
"editorial": "/template-snapshots/en/editorial.png?v=2026-03-22T15%3A40%3A35.007Z"
"editorial": "/template-snapshots/en/editorial.png?v=2026-04-18T17%3A37%3A35.391Z"
}
}
} as const;