Increase signature canvas size and improve styling
Updated the signature popup and canvas dimensions in `ReceiverPage.razor` to enhance usability. Increased the height of all signature canvases to 360px and adjusted styles for better alignment and display. Refined `envelope-viewer.css` by modifying the `sender-image-editor__signature-image-wrap` class to reduce flex size and padding. Added a new class for signature images to ensure proper scaling and object-fit behavior. Improved spacing and readability in `sender-image-editor__signature-meta` and introduced a new `sender-image-editor__signature-place` class for styling the signature place with italic font and smaller size.
This commit is contained in:
@@ -267,7 +267,7 @@
|
||||
@* Signature Popup *@
|
||||
<DxPopup @bind-Visible="_signaturePopupVisible"
|
||||
HeaderText="Unterschrift erstellen"
|
||||
Width="620px"
|
||||
Width="640px"
|
||||
MaxWidth="95vw"
|
||||
ShowFooter="true"
|
||||
CloseOnOutsideClick="false"
|
||||
@@ -307,8 +307,8 @@
|
||||
<p style="color: #6c757d; font-size: 0.875rem; margin-bottom: 0.75rem;">Bitte unterschreiben Sie im folgenden Feld.</p>
|
||||
<canvas id="rp-signature-pad"
|
||||
width="560"
|
||||
height="180"
|
||||
style="border: 2px solid #e9ecef; border-radius: 8px; background: white; width: 100%; max-width: 560px; touch-action: none; box-shadow: 0 1px 3px rgba(0,0,0,0.1);"></canvas>
|
||||
height="360"
|
||||
style="border: 2px solid #e9ecef; border-radius: 8px; background: white; width: 100%; max-width: 560px; display: block; margin: 0 auto; touch-action: none; box-shadow: 0 1px 3px rgba(0,0,0,0.1);"></canvas>
|
||||
}
|
||||
else if (_activeSignatureTab == SignatureTabText)
|
||||
{
|
||||
@@ -335,7 +335,7 @@
|
||||
</div>
|
||||
<canvas id="rp-typed-signature-pad"
|
||||
width="560"
|
||||
height="180"
|
||||
height="360"
|
||||
style="border: 2px solid #e9ecef; border-radius: 8px; background: white; width: 100%; max-width: 560px; box-shadow: 0 1px 3px rgba(0,0,0,0.1);"></canvas>
|
||||
}
|
||||
else
|
||||
@@ -348,7 +348,7 @@
|
||||
style="border: 2px solid #e9ecef; border-radius: 6px; padding: 0.625rem;" />
|
||||
<canvas id="rp-image-signature-pad"
|
||||
width="560"
|
||||
height="180"
|
||||
height="360"
|
||||
style="border: 2px solid #e9ecef; border-radius: 8px; background: white; width: 100%; max-width: 560px; box-shadow: 0 1px 3px rgba(0,0,0,0.1);"></canvas>
|
||||
}
|
||||
|
||||
|
||||
@@ -404,8 +404,8 @@
|
||||
}
|
||||
|
||||
.sender-image-editor__signature-image-wrap {
|
||||
flex: 0 0 72%;
|
||||
padding: 0.15rem 0.2rem 0.05rem;
|
||||
flex: 0 0 60%;
|
||||
padding: 0.1rem 0.2rem 0.05rem;
|
||||
border-bottom: 1px solid rgba(100, 116, 139, 0.45);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -414,6 +414,8 @@
|
||||
}
|
||||
|
||||
.sender-image-editor__signature-image {
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
@@ -422,12 +424,12 @@
|
||||
|
||||
.sender-image-editor__signature-meta {
|
||||
flex: 1;
|
||||
padding: 0.44rem 0.44rem 0.44rem 0.44rem;
|
||||
padding: 0.6rem 0.6rem 0.6rem 1.6rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.04rem;
|
||||
color: #334155;
|
||||
line-height: 1.15;
|
||||
line-height: 1.4;
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
|
||||
@@ -446,6 +448,12 @@
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.sender-image-editor__signature-place {
|
||||
margin-top: auto;
|
||||
font-style: italic;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.sender-image-editor__empty {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user