diff --git a/app/Controllers/Opd.php b/app/Controllers/Opd.php index 8acc0aa..3d678bb 100644 --- a/app/Controllers/Opd.php +++ b/app/Controllers/Opd.php @@ -3882,17 +3882,17 @@ class Opd extends BaseController $labels = ['No Pain', 'Mild', 'Moderate', 'Intense', 'Worst']; // Add debug info at top showing which pain level is selected - $painImageHtml = '
Pain Level: ' . $painIndex . ' - ' . esc($labels[$painIndex]) . '
'; + $painImageHtml = '
Pain Level: ' . $painIndex . ' - ' . esc($labels[$painIndex]) . '
'; - $painImageHtml .= ''; + $painImageHtml .= '
'; // Row 1: Arrow/checkmark indicators (PDF-safe symbols, visible in black & white) $painImageHtml .= ''; for ($i = 0; $i <= 4; $i++) { $active = ($painIndex === $i); $indicator = $active ? '▼' : ''; // Down-pointing triangle (▼) - $fontSize = $active ? '18px' : '12px'; - $painImageHtml .= ''; + $fontSize = $active ? '12px' : '10px'; + $painImageHtml .= ''; } $painImageHtml .= ''; @@ -3902,9 +3902,9 @@ class Opd extends BaseController $active = ($painIndex === $i); $bg = $active ? '#cccccc' : '#ffffff'; // Medium gray for selected (visible in B&W) $borderColor = '#000000'; - $borderWidth = $active ? '3px' : '1px'; + $borderWidth = $active ? '2px' : '1px'; $color = '#000000'; - $painImageHtml .= ''; + $painImageHtml .= ''; } $painImageHtml .= ''; @@ -3913,8 +3913,8 @@ class Opd extends BaseController for ($i = 0; $i <= 4; $i++) { $active = ($painIndex === $i); $fontWeight = $active ? '700' : '400'; - $fontSize = $active ? '9px' : '8px'; - $painImageHtml .= ''; + $fontSize = $active ? '7px' : '7px'; + $painImageHtml .= ''; } $painImageHtml .= '
' . $indicator . '' . $indicator . '
' . $i . '' . $i . '
' . esc($labels[$i]) . '' . esc($labels[$i]) . '
'; }