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:
@@ -192,7 +192,6 @@
|
|||||||
@if (!string.IsNullOrWhiteSpace(_envelopeReceiver.Envelope?.Message))
|
@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;">
|
<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>
|
<span style="color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">@_envelopeReceiver.Envelope.Message</span>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
@@ -208,7 +207,7 @@
|
|||||||
|
|
||||||
@if (_signatures.Count > 0 && !AllSignatureFieldsApplied)
|
@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.")
|
@L("Receiver_Signing_Instruction", "Please click each highlighted field to sign.")
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -397,6 +397,17 @@
|
|||||||
filter: brightness(0.93);
|
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 {
|
.sender-image-editor__signature {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
border: 1px solid rgba(100, 116, 139, 0.5);
|
border: 1px solid rgba(100, 116, 139, 0.5);
|
||||||
|
|||||||
Reference in New Issue
Block a user