diff --git a/app/Controllers/Opd.php b/app/Controllers/Opd.php index 28470f1..cb3a24b 100644 --- a/app/Controllers/Opd.php +++ b/app/Controllers/Opd.php @@ -3586,13 +3586,26 @@ class Opd extends BaseController return ''; } - $headingHtml = '' . $label . ' :'; + // 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 . ' :'; if ($lineBreakAfterLabel) { - return '
' . $headingHtml . '
' . $value . '
'; + // List-style sections: heading on its own line, content indented below. + return '
' + . $headingHtml + . '
' + . $value + . '
'; } - return '
' . $headingHtml . ' ' . $value . '
'; + // Inline sections (Vitals, Investigation, Next Visit): heading + value on same line. + return '
' + . $headingHtml + . ' ' + . $value + . '
'; }; $escape = static fn (string $value): string => htmlspecialchars($value, ENT_QUOTES, 'UTF-8'); @@ -3666,7 +3679,7 @@ class Opd extends BaseController return ''; } - $listHtml = '