From 64068c9c29033f5f6934483e5bbf419703b36505 Mon Sep 17 00:00:00 2001 From: TekH Date: Sat, 6 Jun 2026 01:16:14 +0200 Subject: [PATCH] Improve PDF thumbnail scaling and centering Updated the `.pdf-thumbnail__canvas` CSS class to replace `max-width`, `max-height`, and `display: block` with `width`, `height`, `object-fit: contain`, and `object-position: center`. These changes ensure the canvas fully occupies its container, scales proportionally without cropping, and centers the content for better visual consistency and usability. --- .../wwwroot/css/envelope-viewer.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/EnvelopeGenerator.ReceiverUI/wwwroot/css/envelope-viewer.css b/EnvelopeGenerator.ReceiverUI/wwwroot/css/envelope-viewer.css index 82179019..fc135292 100644 --- a/EnvelopeGenerator.ReceiverUI/wwwroot/css/envelope-viewer.css +++ b/EnvelopeGenerator.ReceiverUI/wwwroot/css/envelope-viewer.css @@ -178,9 +178,10 @@ body.resizing { } .pdf-thumbnail__canvas { - max-width: 100%; - max-height: 100%; - display: block; + width: 100%; + height: 100%; + object-fit: contain; + object-position: center; } .pdf-thumbnail__label {