fix: apply pdf-export class directly to cloned pageEl for html2canvas
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -15,7 +15,7 @@ export const PrintableReport: React.FC<PrintableReportProps> = ({ reports }) =>
|
|||||||
style={{ width: '210mm', background: 'white' }}
|
style={{ width: '210mm', background: 'white' }}
|
||||||
>
|
>
|
||||||
{reports.map((report, idx) => (
|
{reports.map((report, idx) => (
|
||||||
<div key={idx} className="report-page" style={{ minHeight: '297mm' }}>
|
<div key={idx} className="report-page pdf-export bg-white" style={{ minHeight: '297mm' }}>
|
||||||
<ReportDisplay report={report} />
|
<ReportDisplay report={report} />
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user