From e625233d964631b327c903c12eaf73531b018464 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Wed, 8 Jul 2026 15:35:01 +0530 Subject: [PATCH] Improve OPD history scan viewer with responsive sizing and modal zoom/pan --- app/Views/billing/Patient_Profile_Opd_V.php | 127 +++++++++++++++++++- 1 file changed, 124 insertions(+), 3 deletions(-) diff --git a/app/Views/billing/Patient_Profile_Opd_V.php b/app/Views/billing/Patient_Profile_Opd_V.php index 69083e0..a404e09 100644 --- a/app/Views/billing/Patient_Profile_Opd_V.php +++ b/app/Views/billing/Patient_Profile_Opd_V.php @@ -40,10 +40,14 @@ if ($backUrl === '') { } .opd-history-file-preview { display: block; - width: 100%; + width: auto; + max-width: 100%; + max-height: min(42vh, 360px); height: auto; + margin: 0 auto; object-fit: contain; cursor: zoom-in; + background: #f8f9fa; } .opd-history-pdf-link { display: flex; @@ -54,6 +58,27 @@ if ($backUrl === '') { padding: 1rem; background: #f8f9fa; } + .opd-scan-modal-body { + max-height: 75vh; + overflow: auto; + background: #f8f9fa; + } + .opd-scan-modal-img { + max-width: 100%; + max-height: 72vh; + width: auto; + height: auto; + transform-origin: center center; + transition: transform 0.12s ease; + cursor: grab; + user-select: none; + } + .opd-scan-modal-img.is-zoomed { + cursor: zoom-out; + } + .opd-scan-modal-img.is-dragging { + cursor: grabbing; + } @@ -157,10 +182,15 @@ if ($backUrl === '') { @@ -169,10 +199,101 @@ if ($backUrl === '') {