Enhanced `ReportViewer.razor` with a new layout structure: - Added `receiver-page-layout` with `receiver-signature-panel` and `receiver-viewer-wrapper` for better organization. - Introduced a button to export signed PDFs, conditionally enabled based on `SignatureApplied`. - Added a `DxPopup` for capturing signatures with a "Close" button. Updated `MainLayout.razor` to remove unnecessary padding from `<article>`. Refined `app.css`: - Defined styles for `receiver-page-layout`, `receiver-signature-panel`, and `receiver-viewer-wrapper` to improve layout flexibility. - Adjusted `article` to use flexbox and ensure hidden overflow.
26 lines
616 B
Plaintext
26 lines
616 B
Plaintext
@using EnvelopeGenerator.ReceiverUI.Services;
|
|
@inherits LayoutComponentBase
|
|
|
|
<div class="page">
|
|
<main>
|
|
<div class="top-row px-4">
|
|
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
|
|
</div>
|
|
|
|
<article class="content">
|
|
@Body
|
|
</article>
|
|
</main>
|
|
</div>
|
|
|
|
@code {
|
|
[Inject] HttpClient Http { get; set; }
|
|
List<string> RequiredFonts = new() {
|
|
"opensans.ttf"
|
|
};
|
|
|
|
protected async override Task OnInitializedAsync() {
|
|
await FontLoader.LoadFonts(Http, RequiredFonts);
|
|
await base.OnInitializedAsync();
|
|
}
|
|
} |