Refactor ReceiverPage styling and improve maintainability

Removed the envelope message icon from ReceiverPage.razor.
Replaced inline signing hint styles with a reusable CSS class
`receiver-signing-hint` for better maintainability. Added the
new class definition in envelope-viewer.css to standardize
styling for signing hints.
This commit is contained in:
2026-11-24 14:01:08 +01:00
parent fdece11e1d
commit 78924e3469
2 changed files with 12 additions and 2 deletions

View File

@@ -192,7 +192,6 @@
@if (!string.IsNullOrWhiteSpace(_envelopeReceiver.Envelope?.Message))
{
<div style="flex: 1; min-width: 0; padding: 0.2rem 0.4rem; background: #f9fafb; border-radius: 0.25rem; border-left: 2px solid #9ca3af; display: flex; align-items: flex-start; gap: 0.25rem;">
<span style="font-weight: 500; color: #374151; flex-shrink: 0;">📧</span>
<span style="color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">@_envelopeReceiver.Envelope.Message</span>
</div>
}
@@ -208,7 +207,7 @@
@if (_signatures.Count > 0 && !AllSignatureFieldsApplied)
{
<div style="margin-top: 0.25rem; font-size: 0.75rem; color: #374151; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 0.4rem; padding: 0.3rem 0.55rem;">
<div class="receiver-signing-hint">
@L("Receiver_Signing_Instruction", "Please click each highlighted field to sign.")
</div>
}

View File

@@ -397,6 +397,17 @@
filter: brightness(0.93);
}
.receiver-signing-hint {
margin-top: 0.3rem;
display: inline-block;
max-width: 100%;
padding: 0.14rem 0;
color: #64748b;
font-size: 0.72rem;
font-weight: 500;
line-height: 1.3;
}
.sender-image-editor__signature {
position: absolute;
border: 1px solid rgba(100, 116, 139, 0.5);