mirror of
https://github.com/shrekbytes/advanced-pdf-export.git
synced 2026-07-22 07:25:03 +00:00
fix(pdf): header border and text missplace
This commit is contained in:
parent
f9a54fa011
commit
f66ac2e24b
2 changed files with 86 additions and 84 deletions
168
main.js
168
main.js
File diff suppressed because one or more lines are too long
2
main.ts
2
main.ts
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue