Increase spacing between OPD print placeholder blocks

This commit is contained in:
DevSoftTech Server 2026-06-05 04:08:20 +05:30
parent 6bdef9bb9d
commit 3a06c32dc5

View File

@ -3586,22 +3586,24 @@ class Opd extends BaseController
return ''; return '';
} }
// Heading uses same font-size as surrounding content (inherit) so heading // Heading: bold + uppercase, same font-size as surrounding content so
// and value are visually consistent; bold weight + uppercase provides // heading and value stay visually matched (no mismatch from hardcoded px).
// clear separation without a size mismatch. $headingHtml = '<span style="font-weight:700;font-size:inherit;letter-spacing:0.04em;text-transform:uppercase;color:#1a1a1a;">' . $label . ' :</span>';
$headingHtml = '<span style="font-weight:700;font-size:inherit;letter-spacing:0.03em;text-transform:uppercase;color:#1a1a1a;">' . $label . ' :</span>';
if ($lineBreakAfterLabel) { if ($lineBreakAfterLabel) {
// List-style sections: heading on its own line, content indented below. // List-style sections (Complaint, Diagnosis …):
return '<div style="margin-bottom:6px;line-height:1.5;">' // heading on its own line, content block below with a small left indent.
// margin-bottom:12px gives clear visual separation between consecutive sections.
return '<div style="margin-top:0;margin-bottom:12px;line-height:1.6;">'
. $headingHtml . $headingHtml
. '<div style="margin-top:2px;padding-left:4px;font-weight:400;color:#111;line-height:1.6;">' . '<div style="margin-top:3px;padding-left:6px;font-weight:400;color:#111;line-height:1.6;">'
. $value . $value
. '</div></div>'; . '</div></div>';
} }
// Inline sections (Vitals, Investigation, Next Visit): heading + value on same line. // Inline sections (Vitals, Investigation, Next Visit):
return '<div style="margin-bottom:5px;line-height:1.5;">' // heading + value on the same line; same 12px gap after block.
return '<div style="margin-top:0;margin-bottom:12px;line-height:1.6;">'
. $headingHtml . $headingHtml
. ' <span style="font-weight:400;color:#111;">' . ' <span style="font-weight:400;color:#111;">'
. $value . $value