From 0a1c600b8aa228e873a9f1ce2cc60a17572e4da6 Mon Sep 17 00:00:00 2001 From: mahdahar <89adham@gmail.com> Date: Fri, 24 Apr 2026 11:27:12 +0700 Subject: [PATCH] fix(report): normalize report footer layout for web and PDF Replace footer
blocks within report template. Add explicit
line breaks for collected/received/validation/print metadata lines. Add shared .footer-lines style in public/assets/report/pdf.css and public/assets/report/style.css (white-space: normal; line-height: 1.2). Preventwhitespace behavior from distorting footer wrapping/spacing across print and browser views. --- app/Views/report/template.php | 16 ++++++++-------- public/assets/report/pdf.css | 1 + public/assets/report/style.css | 3 ++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/Views/report/template.php b/app/Views/report/template.php index 2289cc5..f4d595e 100644 --- a/app/Views/report/template.php +++ b/app/Views/report/template.php @@ -83,10 +83,10 @@ $i = 1; Status : = esc($status) ?> -Collected on = esc($collData) ?> -Received on = esc($recvData) ?> -Val1 By : = esc($val1User) ?> (= esc($val1Date) ?>) | Val2 By : = esc($val2User) ?> (= esc($val2Date) ?>) -Page = $i ?>/= $npage ?> Printed By : = esc($valBy) ?> = esc($date) ?>+Collected on = esc($collData) ?>
+Received on = esc($recvData) ?>
+Val1 By : = esc($val1User) ?> (= esc($val1Date) ?>) | Val2 By : = esc($val2User) ?> (= esc($val2Date) ?>)
+Page = $i ?>/= $npage ?> Printed By : = esc($valBy) ?> = esc($date) ?> ”This result is valid without signature.”@@ -128,10 +128,10 @@ endforeach;Status : = esc($status) ?> - Collected on = esc($collData) ?> -Received on = esc($recvData) ?> -Val1 By : = esc($val1User) ?> (= esc($val1Date) ?>) | Val2 By : = esc($val2User) ?> (= esc($val2Date) ?>) -Page = $npage + 1 ?>/= $npage + 1 ?> Printed By : = esc($valBy) ?> = esc($date) ?>+Collected on = esc($collData) ?>
+Received on = esc($recvData) ?>
+Val1 By : = esc($val1User) ?> (= esc($val1Date) ?>) | Val2 By : = esc($val2User) ?> (= esc($val2Date) ?>)
+Page = $npage + 1 ?>/= $npage + 1 ?> Printed By : = esc($valBy) ?> = esc($date) ?> ”This result is valid without signature.”diff --git a/public/assets/report/pdf.css b/public/assets/report/pdf.css index 7db7259..c2f6634 100644 --- a/public/assets/report/pdf.css +++ b/public/assets/report/pdf.css @@ -28,6 +28,7 @@ td.right { text-align: right; } .img { width:200mm; margin-left:0.5cm } .img-footer { margin-bottom:7.5mm } pre.small {font-size:6pt;} +.footer-lines { white-space: normal; line-height: 1.2; } @media print { @page { margin:0; size:210mm 297mm; } diff --git a/public/assets/report/style.css b/public/assets/report/style.css index f8088fc..89dfb75 100644 --- a/public/assets/report/style.css +++ b/public/assets/report/style.css @@ -28,4 +28,5 @@ td.right { text-align: right; } .img { max-width: 100%; height: auto; } .img-footer { max-width: 100%; height: auto; max-height: 2.5cm; } -pre.small {font-size:6pt;} \ No newline at end of file +pre.small {font-size:6pt;} +.footer-lines { white-space: normal; line-height: 1.2; } \ No newline at end of file