fix: disable animations on print and remove minHeight forcing 2 pages
This commit is contained in:
@@ -11,11 +11,11 @@ export const PrintableReport: React.FC<PrintableReportProps> = ({ reports }) =>
|
||||
<div
|
||||
id="printable-report-container"
|
||||
data-report={JSON.stringify(reports)}
|
||||
className="light bg-white text-slate-900 flex flex-col gap-[20mm]"
|
||||
style={{ width: '210mm', background: 'white' }}
|
||||
className="light bg-white text-slate-900 flex flex-col gap-8"
|
||||
style={{ background: 'white' }}
|
||||
>
|
||||
{reports.map((report, idx) => (
|
||||
<div key={idx} className="report-page bg-white" style={{ minHeight: '297mm' }}>
|
||||
<div key={idx} className="report-page bg-white w-full h-auto">
|
||||
<ReportDisplay report={report} />
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user