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 *@
|
@* Signature Popup *@
|
||||||
<DxPopup @bind-Visible="_signaturePopupVisible"
|
<DxPopup @bind-Visible="_signaturePopupVisible"
|
||||||
HeaderText="Unterschrift erstellen"
|
HeaderText="Unterschrift erstellen"
|
||||||
Width="620px"
|
Width="640px"
|
||||||
MaxWidth="95vw"
|
MaxWidth="95vw"
|
||||||
ShowFooter="true"
|
ShowFooter="true"
|
||||||
CloseOnOutsideClick="false"
|
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>
|
<p style="color: #6c757d; font-size: 0.875rem; margin-bottom: 0.75rem;">Bitte unterschreiben Sie im folgenden Feld.</p>
|
||||||
<canvas id="rp-signature-pad"
|
<canvas id="rp-signature-pad"
|
||||||
width="560"
|
width="560"
|
||||||
height="180"
|
height="360"
|
||||||
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>
|
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)
|
else if (_activeSignatureTab == SignatureTabText)
|
||||||
{
|
{
|
||||||
@@ -335,7 +335,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<canvas id="rp-typed-signature-pad"
|
<canvas id="rp-typed-signature-pad"
|
||||||
width="560"
|
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>
|
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
|
else
|
||||||
@@ -348,7 +348,7 @@
|
|||||||
style="border: 2px solid #e9ecef; border-radius: 6px; padding: 0.625rem;" />
|
style="border: 2px solid #e9ecef; border-radius: 6px; padding: 0.625rem;" />
|
||||||
<canvas id="rp-image-signature-pad"
|
<canvas id="rp-image-signature-pad"
|
||||||
width="560"
|
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>
|
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 {
|
.sender-image-editor__signature-image-wrap {
|
||||||
flex: 0 0 72%;
|
flex: 0 0 60%;
|
||||||
padding: 0.15rem 0.2rem 0.05rem;
|
padding: 0.1rem 0.2rem 0.05rem;
|
||||||
border-bottom: 1px solid rgba(100, 116, 139, 0.45);
|
border-bottom: 1px solid rgba(100, 116, 139, 0.45);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -414,6 +414,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sender-image-editor__signature-image {
|
.sender-image-editor__signature-image {
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
@@ -422,12 +424,12 @@
|
|||||||
|
|
||||||
.sender-image-editor__signature-meta {
|
.sender-image-editor__signature-meta {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 0.44rem 0.44rem 0.44rem 0.44rem;
|
padding: 0.6rem 0.6rem 0.6rem 1.6rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.04rem;
|
gap: 0.04rem;
|
||||||
color: #334155;
|
color: #334155;
|
||||||
line-height: 1.15;
|
line-height: 1.4;
|
||||||
font-size: 0.88rem;
|
font-size: 0.88rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -446,6 +448,12 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sender-image-editor__signature-place {
|
||||||
|
margin-top: auto;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
.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