From 3a06c32dc5e32cb9793b41a8c1a5530cd705e515 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Fri, 5 Jun 2026 04:08:20 +0530 Subject: [PATCH] Increase spacing between OPD print placeholder blocks --- app/Controllers/Opd.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/app/Controllers/Opd.php b/app/Controllers/Opd.php index cb3a24b..57859eb 100644 --- a/app/Controllers/Opd.php +++ b/app/Controllers/Opd.php @@ -3586,22 +3586,24 @@ class Opd extends BaseController return ''; } - // Heading uses same font-size as surrounding content (inherit) so heading - // and value are visually consistent; bold weight + uppercase provides - // clear separation without a size mismatch. - $headingHtml = '' . $label . ' :'; + // Heading: bold + uppercase, same font-size as surrounding content so + // heading and value stay visually matched (no mismatch from hardcoded px). + $headingHtml = '' . $label . ' :'; if ($lineBreakAfterLabel) { - // List-style sections: heading on its own line, content indented below. - return '
' + // List-style sections (Complaint, Diagnosis …): + // heading on its own line, content block below with a small left indent. + // margin-bottom:12px gives clear visual separation between consecutive sections. + return '
' . $headingHtml - . '
' + . '
' . $value . '
'; } - // Inline sections (Vitals, Investigation, Next Visit): heading + value on same line. - return '
' + // Inline sections (Vitals, Investigation, Next Visit): + // heading + value on the same line; same 12px gap after block. + return '
' . $headingHtml . ' ' . $value