fix(pdf): header border and text missplace

This commit is contained in:
Walid 2026-06-27 10:51:01 +06:00
parent f9a54fa011
commit f66ac2e24b
2 changed files with 86 additions and 84 deletions

168
main.js

File diff suppressed because one or more lines are too long

View file

@ -2506,7 +2506,7 @@ class PDFExportModal extends Modal {
const hasExportHeader = layout.hasHeader;
const headerBorder = s.showHeaderBorder ? `border-bottom:0.5px solid ${exportAccent}33;` : "";
const headerHTML = hasExportHeader
? `<div style="position:absolute;top:${mTop * 0.4}px;left:${mLeft}px;right:${mRight}px;display:flex;align-items:center;font-size:${s.headerFontSize}px;color:${s.headerFontColor};font-family:${fontFamily};white-space:nowrap;${headerBorder}">${buildHFInnerHTML(layout.headerCenter, layout.headerLeft, layout.headerRight)}</div>`
? `<div style="position:absolute;top:${mTop * 0.4}px;left:${mLeft}px;right:${mRight}px;height:${headerH}px;display:flex;align-items:center;font-size:${s.headerFontSize}px;color:${s.headerFontColor};font-family:${fontFamily};white-space:nowrap;${headerBorder}">${buildHFInnerHTML(layout.headerCenter, layout.headerLeft, layout.headerRight)}</div>`
: "";
const hasExportFooter = layout.hasFooter;