feat(cv): harden multi-page builder
Wrap pathological content, paginate oversized entries, measure A4 and Letter previews correctly, unify section ordering, and gate stored-output actions on saved state.
This commit is contained in:
@@ -51,9 +51,11 @@ dense), `ats-classic` (single, no graphics), `nordic` (sidebar-right), `elegant`
|
||||
- **ATS-friendliness** is a data flag: `CvTheme.AtsFriendly` (set on the single-column themes),
|
||||
surfaced in `GET /api/cv/themes` and badged in the Customize tab. Two-column (sidebar) themes are not
|
||||
flagged, as sidebar layouts can trip naive resume parsers.
|
||||
- **Print quality**: the renderer emits `break-inside: avoid` on entries, `break-after: avoid` on
|
||||
section headings, and widow/orphan control, so entries don't split across a page in the Playwright
|
||||
PDF pass.
|
||||
- **Print quality**: ordinary entries use `break-inside: avoid-page`; content classified as too tall
|
||||
for a page is allowed to flow between bullets/paragraphs so Chromium cannot clip an unsplittable
|
||||
block. Section headings avoid a following break, list items carry widow/orphan rules, and long
|
||||
names/titles/contact values/URLs/tags wrap within `minmax(0, …)` columns. Typography is not scaled
|
||||
down to mask overflow.
|
||||
|
||||
## Deliberately not here (yet)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user