Add signature overlay and submission functionality
Enhanced `SenderPdfImageEditor` to render signature overlays with dynamic positioning and metadata display. Introduced `SenderPdfSignatureOverlay` record to represent signature data. Updated `ReceiverPage` to integrate signature capture and submission, including a confirmation popup and error handling. Removed legacy signature caching logic. Added new state variables and computed properties to manage signature overlays and submission state. Marked legacy `ReceiverSignedPage` route as obsolete. Improved styling in `envelope-viewer.css` for signature overlays.
This commit is contained in:
@@ -108,6 +108,27 @@
|
|||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@foreach (var signature in SignatureOverlays.Where(s => s.Page == pageNumber))
|
||||||
|
{
|
||||||
|
<div class="sender-image-editor__signature"
|
||||||
|
style="@GetSignatureStyle(signature, widthPt, heightPt)">
|
||||||
|
<div class="sender-image-editor__signature-image-wrap">
|
||||||
|
<img class="sender-image-editor__signature-image"
|
||||||
|
src="@signature.DataUrl"
|
||||||
|
alt="Signature"
|
||||||
|
draggable="false" />
|
||||||
|
</div>
|
||||||
|
<div class="sender-image-editor__signature-meta">
|
||||||
|
<div class="sender-image-editor__signature-name">@signature.FullName</div>
|
||||||
|
@if (!string.IsNullOrWhiteSpace(signature.Position))
|
||||||
|
{
|
||||||
|
<div class="sender-image-editor__signature-position">@signature.Position</div>
|
||||||
|
}
|
||||||
|
<div class="sender-image-editor__signature-place">@signature.Place, @signature.DateText</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
@@ -135,6 +156,9 @@
|
|||||||
[Parameter]
|
[Parameter]
|
||||||
public IReadOnlyList<SenderPdfFieldOverlay> Fields { get; set; } = Array.Empty<SenderPdfFieldOverlay>();
|
public IReadOnlyList<SenderPdfFieldOverlay> Fields { get; set; } = Array.Empty<SenderPdfFieldOverlay>();
|
||||||
|
|
||||||
|
[Parameter]
|
||||||
|
public IReadOnlyList<SenderPdfSignatureOverlay> SignatureOverlays { get; set; } = Array.Empty<SenderPdfSignatureOverlay>();
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public bool ShowFieldRemoveButton { get; set; } = true;
|
public bool ShowFieldRemoveButton { get; set; } = true;
|
||||||
|
|
||||||
@@ -194,6 +218,21 @@
|
|||||||
$"background-color:{field.Color}22;");
|
$"background-color:{field.Color}22;");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static string GetSignatureStyle(SenderPdfSignatureOverlay signature, double pageWidthPt, double pageHeightPt)
|
||||||
|
{
|
||||||
|
var leftPercent = (signature.XPt / pageWidthPt) * 100.0;
|
||||||
|
var topPercent = (signature.YPt / pageHeightPt) * 100.0;
|
||||||
|
var widthPercent = (127.44 / pageWidthPt) * 100.0;
|
||||||
|
var heightPercent = (141.12 / pageHeightPt) * 100.0;
|
||||||
|
|
||||||
|
var left = leftPercent.ToString("F4", CultureInfo.InvariantCulture);
|
||||||
|
var top = topPercent.ToString("F4", CultureInfo.InvariantCulture);
|
||||||
|
var width = widthPercent.ToString("F4", CultureInfo.InvariantCulture);
|
||||||
|
var height = heightPercent.ToString("F4", CultureInfo.InvariantCulture);
|
||||||
|
|
||||||
|
return $"position:absolute;left:{left}%;top:{top}%;width:{width}%;height:{height}%;z-index:40;";
|
||||||
|
}
|
||||||
|
|
||||||
private string GetPageCanvasStyle(double pageWidthPt, double pageHeightPt)
|
private string GetPageCanvasStyle(double pageWidthPt, double pageHeightPt)
|
||||||
{
|
{
|
||||||
var ratio = pageHeightPt <= 0 ? 595.0 / 842.0 : pageWidthPt / pageHeightPt;
|
var ratio = pageHeightPt <= 0 ? 595.0 / 842.0 : pageWidthPt / pageHeightPt;
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
namespace EnvelopeGenerator.Server.Client.Components.PdfEditor;
|
||||||
|
|
||||||
|
public sealed record SenderPdfSignatureOverlay(
|
||||||
|
int Page,
|
||||||
|
double XPt,
|
||||||
|
double YPt,
|
||||||
|
string DataUrl,
|
||||||
|
string FullName,
|
||||||
|
string? Position,
|
||||||
|
string Place,
|
||||||
|
string DateText);
|
||||||
@@ -14,7 +14,6 @@
|
|||||||
@using DevExpress.Blazor
|
@using DevExpress.Blazor
|
||||||
@using System.Security.Claims
|
@using System.Security.Claims
|
||||||
@using System.ComponentModel.DataAnnotations
|
@using System.ComponentModel.DataAnnotations
|
||||||
@using Microsoft.Extensions.Caching.Memory
|
|
||||||
@using MediatR
|
@using MediatR
|
||||||
@using EnvelopeGenerator.Server.Extensions
|
@using EnvelopeGenerator.Server.Extensions
|
||||||
@inject NavigationManager Navigation
|
@inject NavigationManager Navigation
|
||||||
@@ -23,8 +22,8 @@
|
|||||||
@inject EnvelopeGenerator.Server.Services.EnvelopeReceiverAuthorizationService ReceiverAuthorizationService
|
@inject EnvelopeGenerator.Server.Services.EnvelopeReceiverAuthorizationService ReceiverAuthorizationService
|
||||||
@inject EnvelopeGenerator.Server.Services.EnvelopeReceiverPageDataService PageDataService
|
@inject EnvelopeGenerator.Server.Services.EnvelopeReceiverPageDataService PageDataService
|
||||||
@inject AnnotationService AnnotationService
|
@inject AnnotationService AnnotationService
|
||||||
|
@inject SignatureService SignatureService
|
||||||
@inject AppVersionService AppVersion
|
@inject AppVersionService AppVersion
|
||||||
@inject IMemoryCache MemoryCache
|
|
||||||
@inject ILogger<ReceiverPage> Logger
|
@inject ILogger<ReceiverPage> Logger
|
||||||
@inject IMediator Mediator
|
@inject IMediator Mediator
|
||||||
@inject IPdfPageImageRenderer PdfPageImageRenderer
|
@inject IPdfPageImageRenderer PdfPageImageRenderer
|
||||||
@@ -125,12 +124,23 @@
|
|||||||
{
|
{
|
||||||
<button class="pdf-toolbar__btn pdf-toolbar__btn--signature-change pdf-toolbar__btn--signature-change-active"
|
<button class="pdf-toolbar__btn pdf-toolbar__btn--signature-change pdf-toolbar__btn--signature-change-active"
|
||||||
@onclick="OpenSignaturePopup"
|
@onclick="OpenSignaturePopup"
|
||||||
title="Unterschreiben"
|
title="@(_capturedSignature is null ? "Unterschreiben" : "Unterschrift andern")"
|
||||||
style="flex-shrink: 0;">
|
style="flex-shrink: 0;">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 16 16">
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 16 16">
|
||||||
<path d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z" />
|
<path d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z" />
|
||||||
</svg>
|
</svg>
|
||||||
<span class="pdf-toolbar__btn-text">Unterschreiben</span>
|
<span class="pdf-toolbar__btn-text">@(_capturedSignature is null ? "Unterschreiben" : "Unterschrift andern")</span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button class="pdf-toolbar__btn pdf-toolbar__btn--signature-change pdf-toolbar__btn--signature-change-active"
|
||||||
|
@onclick="OpenSubmitConfirmPopup"
|
||||||
|
disabled="@(_capturedSignature is null || _isSubmittingSignature)"
|
||||||
|
title="Abschließen"
|
||||||
|
style="flex-shrink: 0;">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 16 16">
|
||||||
|
<path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" />
|
||||||
|
</svg>
|
||||||
|
<span class="pdf-toolbar__btn-text">Abschließen</span>
|
||||||
</button>
|
</button>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@@ -195,12 +205,65 @@
|
|||||||
Pages="@_pagePreviews"
|
Pages="@_pagePreviews"
|
||||||
PdfDataUrl="@PdfDataUrl"
|
PdfDataUrl="@PdfDataUrl"
|
||||||
PdfFileName="@PdfFileName"
|
PdfFileName="@PdfFileName"
|
||||||
Fields="@FieldOverlays"
|
Fields="@VisibleFieldOverlays"
|
||||||
|
SignatureOverlays="@SignedOverlays"
|
||||||
ShowFieldRemoveButton="false" />
|
ShowFieldRemoveButton="false" />
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<DxPopup @bind-Visible="_submitConfirmVisible"
|
||||||
|
HeaderText="Unterschrift bestätigen"
|
||||||
|
Width="440px"
|
||||||
|
MaxWidth="95vw"
|
||||||
|
ShowFooter="true"
|
||||||
|
CloseOnOutsideClick="false"
|
||||||
|
ShowCloseButton="false"
|
||||||
|
CloseOnEscape="false">
|
||||||
|
<BodyContentTemplate>
|
||||||
|
<div style="display: flex; align-items: flex-start; gap: 1rem; padding: 0.5rem 0;">
|
||||||
|
<div style="flex-shrink: 0; width: 40px; height: 40px; background: #d1fae5; border-radius: 50%; display: flex; align-items: center; justify-content: center;">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#065f46" viewBox="0 0 16 16">
|
||||||
|
<path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p style="margin: 0 0 0.4rem; font-weight: 600; color: #1f2937; font-size: 0.95rem;">
|
||||||
|
Möchten Sie das Dokument verbindlich unterschreiben?
|
||||||
|
</p>
|
||||||
|
<p style="margin: 0; color: #6b7280; font-size: 0.85rem; line-height: 1.5;">
|
||||||
|
Diese Aktion kann nicht rückgängig gemacht werden. Mit der Bestätigung erklären Sie, das oben angezeigte Dokument elektronisch unterzeichnet zu haben.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@if (!string.IsNullOrWhiteSpace(_submitErrorMessage))
|
||||||
|
{
|
||||||
|
<div class="alert alert-danger mb-0" role="alert" style="font-size: 0.85rem;">
|
||||||
|
@_submitErrorMessage
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</BodyContentTemplate>
|
||||||
|
<FooterContentTemplate>
|
||||||
|
<div class="d-flex gap-2 justify-content-end w-100" style="padding: 0.5rem 0;">
|
||||||
|
<button class="btn btn-outline-secondary"
|
||||||
|
@onclick="() => _submitConfirmVisible = false"
|
||||||
|
style="border-radius: 6px; padding: 0.5rem 1.25rem; font-weight: 500;">
|
||||||
|
Abbrechen
|
||||||
|
</button>
|
||||||
|
<button class="btn btn-primary"
|
||||||
|
@onclick="SubmitAndLogoutAsync"
|
||||||
|
disabled="@_isSubmittingSignature"
|
||||||
|
style="background: linear-gradient(135deg, #059669 0%, #047857 100%); border: none; border-radius: 6px; padding: 0.5rem 1.5rem; font-weight: 600; box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);">
|
||||||
|
@if (_isSubmittingSignature)
|
||||||
|
{
|
||||||
|
<span class="spinner-border spinner-border-sm me-1" role="status"></span>
|
||||||
|
}
|
||||||
|
Abschließen
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</FooterContentTemplate>
|
||||||
|
</DxPopup>
|
||||||
|
|
||||||
@* Signature Popup *@
|
@* Signature Popup *@
|
||||||
<DxPopup @bind-Visible="_signaturePopupVisible"
|
<DxPopup @bind-Visible="_signaturePopupVisible"
|
||||||
HeaderText="Unterschrift erstellen"
|
HeaderText="Unterschrift erstellen"
|
||||||
@@ -391,6 +454,23 @@
|
|||||||
.Select((s, i) => new SenderPdfFieldOverlay(i, s.Page, s.X, s.Y, "UNTERSCHRIFT", "#4F46E5"))
|
.Select((s, i) => new SenderPdfFieldOverlay(i, s.Page, s.X, s.Y, "UNTERSCHRIFT", "#4F46E5"))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
|
IReadOnlyList<SenderPdfFieldOverlay> VisibleFieldOverlays => _capturedSignature is null
|
||||||
|
? FieldOverlays
|
||||||
|
: Array.Empty<SenderPdfFieldOverlay>();
|
||||||
|
|
||||||
|
IReadOnlyList<SenderPdfSignatureOverlay> SignedOverlays => _capturedSignature is null
|
||||||
|
? Array.Empty<SenderPdfSignatureOverlay>()
|
||||||
|
: _signatures.Select(s => new SenderPdfSignatureOverlay(
|
||||||
|
s.Page,
|
||||||
|
s.X,
|
||||||
|
s.Y,
|
||||||
|
_capturedSignature.DataUrl,
|
||||||
|
_capturedSignature.FullName,
|
||||||
|
_capturedSignature.Position,
|
||||||
|
_capturedSignature.Place,
|
||||||
|
_capturedSignatureDateText ?? DateTime.Now.ToString("dd.MM.yyyy")))
|
||||||
|
.ToList();
|
||||||
|
|
||||||
string? PdfDataUrl => _displayPdfBytes is { Length: > 0 }
|
string? PdfDataUrl => _displayPdfBytes is { Length: > 0 }
|
||||||
? $"data:application/pdf;base64,{Convert.ToBase64String(_displayPdfBytes)}"
|
? $"data:application/pdf;base64,{Convert.ToBase64String(_displayPdfBytes)}"
|
||||||
: null;
|
: null;
|
||||||
@@ -408,6 +488,10 @@
|
|||||||
string _signerPosition = string.Empty;
|
string _signerPosition = string.Empty;
|
||||||
string _signaturePlace = string.Empty;
|
string _signaturePlace = string.Empty;
|
||||||
bool _isLoggingOut = false;
|
bool _isLoggingOut = false;
|
||||||
|
bool _isSubmittingSignature = false;
|
||||||
|
bool _submitConfirmVisible = false;
|
||||||
|
string? _submitErrorMessage;
|
||||||
|
string? _capturedSignatureDateText;
|
||||||
|
|
||||||
// ----- Share popup state -----
|
// ----- Share popup state -----
|
||||||
bool _sharePopupVisible = false;
|
bool _sharePopupVisible = false;
|
||||||
@@ -572,33 +656,9 @@
|
|||||||
.ToList();
|
.ToList();
|
||||||
_pageCount = _pagePreviews.Count > 0 ? _pagePreviews.Count : 1;
|
_pageCount = _pagePreviews.Count > 0 ? _pagePreviews.Count : 1;
|
||||||
|
|
||||||
// Try to restore cached signature
|
_activeSignatureTab = SignatureTabDraw;
|
||||||
try
|
_signaturePopupVisible = false;
|
||||||
{
|
_popupValidationMessage = null;
|
||||||
var cachedSignature = await PageDataService.GetCachedSignatureAsync(_receiverUser);
|
|
||||||
if (cachedSignature is not null)
|
|
||||||
{
|
|
||||||
_capturedSignature = cachedSignature;
|
|
||||||
_signerFullName = cachedSignature.FullName;
|
|
||||||
_signerPosition = cachedSignature.Position;
|
|
||||||
_signaturePlace = cachedSignature.Place;
|
|
||||||
_signaturePopupVisible = false;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_activeSignatureTab = SignatureTabDraw;
|
|
||||||
_signaturePopupVisible = false;
|
|
||||||
_popupValidationMessage = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
Logger.LogWarning(ex, "Failed to load cached signature for {EnvelopeKey}", EnvelopeKey);
|
|
||||||
_activeSignatureTab = SignatureTabDraw;
|
|
||||||
_signaturePopupVisible = false;
|
|
||||||
_popupValidationMessage = null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@@ -629,6 +689,15 @@
|
|||||||
_popupValidationMessage = null;
|
_popupValidationMessage = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OpenSubmitConfirmPopup()
|
||||||
|
{
|
||||||
|
if (_capturedSignature is null || _isSubmittingSignature)
|
||||||
|
return;
|
||||||
|
|
||||||
|
_submitErrorMessage = null;
|
||||||
|
_submitConfirmVisible = true;
|
||||||
|
}
|
||||||
|
|
||||||
async Task OnPopupShownAsync()
|
async Task OnPopupShownAsync()
|
||||||
{
|
{
|
||||||
await InitializeActiveSignatureTabAsync();
|
await InitializeActiveSignatureTabAsync();
|
||||||
@@ -716,22 +785,50 @@
|
|||||||
Position = _signerPosition.Trim(),
|
Position = _signerPosition.Trim(),
|
||||||
Place = _signaturePlace.Trim(),
|
Place = _signaturePlace.Trim(),
|
||||||
};
|
};
|
||||||
|
_capturedSignatureDateText = DateTime.Now.ToString("dd.MM.yyyy");
|
||||||
_signaturePopupVisible = false;
|
_signaturePopupVisible = false;
|
||||||
|
await InvokeAsync(StateHasChanged);
|
||||||
|
}
|
||||||
|
|
||||||
// Store signature in IMemoryCache with a Guid key (1 minute TTL)
|
async Task SubmitAndLogoutAsync()
|
||||||
var sid = Guid.NewGuid().ToString("N");
|
{
|
||||||
MemoryCache.Set(
|
if (_isSubmittingSignature)
|
||||||
sid,
|
return;
|
||||||
_capturedSignature,
|
|
||||||
TimeSpan.FromMinutes(1));
|
|
||||||
|
|
||||||
Logger.LogInformation(
|
if (string.IsNullOrWhiteSpace(EnvelopeKey) || _capturedSignature is null)
|
||||||
"Signature cached with sid={Sid} for envelope {EnvelopeKey}", sid, EnvelopeKey);
|
return;
|
||||||
|
|
||||||
// Navigate — forceLoad:true for clean circuit teardown
|
_isSubmittingSignature = true;
|
||||||
Navigation.NavigateTo(
|
_submitConfirmVisible = false;
|
||||||
$"/envelope/{Uri.EscapeDataString(EnvelopeKey!)}/signed?sid={sid}",
|
_submitErrorMessage = null;
|
||||||
forceLoad: true);
|
await InvokeAsync(StateHasChanged);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (_signatures.Count == 0)
|
||||||
|
throw new InvalidOperationException("No signature fields found for receiver.");
|
||||||
|
|
||||||
|
var payload = _signatures.Select(field => new SignatureSubmitDto
|
||||||
|
{
|
||||||
|
Id = field.Id,
|
||||||
|
DataUrl = _capturedSignature.DataUrl,
|
||||||
|
FullName = _capturedSignature.FullName,
|
||||||
|
Position = string.IsNullOrWhiteSpace(_capturedSignature.Position) ? null : _capturedSignature.Position,
|
||||||
|
Place = _capturedSignature.Place
|
||||||
|
}).ToList();
|
||||||
|
|
||||||
|
await SignatureService.SubmitAsync(EnvelopeKey, payload);
|
||||||
|
|
||||||
|
await AuthService.LogoutEnvelopeReceiverAsync(EnvelopeKey);
|
||||||
|
Navigation.NavigateTo("/envelope/signed-result", forceLoad: true);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Logger.LogError(ex, "Failed to finalize signature for {EnvelopeKey}", EnvelopeKey);
|
||||||
|
_submitErrorMessage = "Die Unterschrift konnte nicht abgeschlossen werden. Bitte versuchen Sie es erneut.";
|
||||||
|
_isSubmittingSignature = false;
|
||||||
|
await InvokeAsync(StateHasChanged);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenRejectPopup()
|
void OpenRejectPopup()
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
@page "/envelope/{EnvelopeKey}/signed"
|
@page "/envelope/{EnvelopeKey}/signed"
|
||||||
@rendermode InteractiveServer
|
@rendermode InteractiveServer
|
||||||
|
@attribute [Obsolete("Legacy receiver signed preview route. Signing is finalized inline in /envelope/{EnvelopeKey}.")]
|
||||||
@using EnvelopeGenerator.Application.Common.Dto
|
@using EnvelopeGenerator.Application.Common.Dto
|
||||||
@using EnvelopeGenerator.Application.Common.Interfaces.Doc
|
@using EnvelopeGenerator.Application.Common.Interfaces.Doc
|
||||||
@using EnvelopeGenerator.Server.Client.Components.PdfEditor
|
@using EnvelopeGenerator.Server.Client.Components.PdfEditor
|
||||||
|
|||||||
@@ -392,6 +392,60 @@
|
|||||||
filter: brightness(0.96);
|
filter: brightness(0.96);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sender-image-editor__signature {
|
||||||
|
position: absolute;
|
||||||
|
border: 1px solid rgba(100, 116, 139, 0.5);
|
||||||
|
border-radius: 8px;
|
||||||
|
background: rgba(255, 253, 240, 0.98);
|
||||||
|
overflow: hidden;
|
||||||
|
pointer-events: none;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sender-image-editor__signature-image-wrap {
|
||||||
|
flex: 0 0 72%;
|
||||||
|
padding: 0.15rem 0.2rem 0.05rem;
|
||||||
|
border-bottom: 1px solid rgba(100, 116, 139, 0.45);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background: rgba(255, 255, 255, 0.92);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sender-image-editor__signature-image {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sender-image-editor__signature-meta {
|
||||||
|
flex: 1;
|
||||||
|
padding: 0.44rem 0.44rem 0.44rem 0.44rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.04rem;
|
||||||
|
color: #334155;
|
||||||
|
line-height: 1.15;
|
||||||
|
font-size: 0.88rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sender-image-editor__signature-name {
|
||||||
|
font-weight: 700;
|
||||||
|
color: #0f172a;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sender-image-editor__signature-position,
|
||||||
|
.sender-image-editor__signature-place {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
.sender-image-editor__empty {
|
.sender-image-editor__empty {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user