Add PDF preview and improve document upload UX
Enhanced `CreateEnvelopeWizardPopup.razor` with PDF preview functionality using `SenderPdfImageEditor` and `PdfRenderService`. Added `_documentPagePreviews` to store rendered pages and `DocumentPdfDataUrl` for base64-encoded PDF data. Updated document upload logic to render pages and handle errors gracefully. Cleared `_documentPagePreviews` on reset. Modified `PdfFileDropZone.razor` to include a spacer for better layout when no document is present. Updated `sender-page.css` to improve layout responsiveness, add dynamic resizing, and refine styles for document preview and drop zone. Removed unused `sender-create-wizard__document-meta` class. These changes improve the user experience by providing PDF previews, enhancing layout consistency, and ensuring robust error handling during document uploads.
This commit is contained in:
@@ -21,6 +21,11 @@
|
||||
{
|
||||
<div class="sender-pdf-dropzone__hint">@CurrentActionText</div>
|
||||
}
|
||||
|
||||
@if (!HasDocument)
|
||||
{
|
||||
<div class="sender-pdf-dropzone__initial-spacer" aria-hidden="true"></div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<InputFile OnChange="OnFileSelectedAsync"
|
||||
|
||||
Reference in New Issue
Block a user