fix(cv): restore distinct frameless previews
This commit is contained in:
@@ -182,16 +182,30 @@ export function getCvPreviewFitZoom(containerWidthPx: number, pageWidthPx: numbe
|
||||
return Math.min(1, Math.max(minZoom, usableWidth / pageWidthPx));
|
||||
}
|
||||
|
||||
// Selecting a template is a structural choice. Clear only the presentation overrides that can
|
||||
// flatten every template into the previous template's layout; keep content, colour, typography,
|
||||
// spacing and document settings intact.
|
||||
// Selecting a template restores that template's complete visual identity. CV content and document
|
||||
// metadata remain untouched; users can customise the newly selected template afterwards.
|
||||
export function applyCvTheme(settings: CvVariantSettings, themeId: string): CvVariantSettings {
|
||||
return {
|
||||
...settings,
|
||||
themeId,
|
||||
accentColor: null,
|
||||
headingFont: null,
|
||||
bodyFont: null,
|
||||
density: null,
|
||||
textColor: null,
|
||||
mutedColor: null,
|
||||
headingColor: null,
|
||||
backgroundColor: null,
|
||||
baseFontSizePt: null,
|
||||
headingSizePt: null,
|
||||
lineHeight: null,
|
||||
pageMarginMm: null,
|
||||
sectionGapMm: null,
|
||||
entryGapMm: null,
|
||||
layout: null,
|
||||
headerStyle: null,
|
||||
headingStyle: null,
|
||||
skillsStyle: null,
|
||||
sidebarWidthMm: null,
|
||||
sidebarSections: null,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user