mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-06-22 04:11:55 +10:00
fix(pdf): increase headerNameLineHeight to 1.3 to prevent descender clipping (#3050)
All Heading elements apply overflow:hidden via safeTextStyle in primitives.tsx. At 1.5× heading font size with lineHeight 1.2, the line box is too tight to fully render descenders (g, p, y, etc.) in the resume header name field, causing them to appear visually cut off. Raising headerNameLineHeight from 1.2 to 1.3 adds enough vertical room for descenders across all 13 templates that share this constant. Fixes #3042
This commit is contained in:
@@ -21,7 +21,11 @@ export const mergeStyles = (...styles: StyleInput[]): Style => Object.assign({},
|
||||
|
||||
export const mergeLinkStyles = (...styles: StyleInput[]): Style => mergeStyles(...styles, linkUnderlineStyle);
|
||||
|
||||
export const headerNameLineHeight = 1.2;
|
||||
// Increased from 1.2 to 1.3 to prevent descenders (g, p, y, etc.) from being
|
||||
// clipped by the overflow:hidden applied in safeTextStyle on all Heading elements.
|
||||
// At 1.5× heading font size, a lineHeight of 1.2 leaves insufficient room for
|
||||
// the descender depth of many fonts, causing letters to appear visually cut off.
|
||||
export const headerNameLineHeight = 1.3;
|
||||
|
||||
export type ResolvePlacementColorOptions = {
|
||||
placement: TemplatePlacement;
|
||||
|
||||
Reference in New Issue
Block a user