Center canvas elements in ReceiverPage.razor

Updated the `style` attribute of `<canvas>` elements to include `display: block;` and `margin: 0 auto;`, ensuring horizontal centering. Changes applied to `rp-typed-signature-pad` and `rp-image-signature-pad`.
This commit is contained in:
2026-11-23 15:26:38 +01:00
parent 37c370266e
commit f123d9e785

View File

@@ -336,7 +336,7 @@
<canvas id="rp-typed-signature-pad" <canvas id="rp-typed-signature-pad"
width="560" width="560"
height="360" 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; display: block; margin: 0 auto; box-shadow: 0 1px 3px rgba(0,0,0,0.1);"></canvas>
} }
else else
{ {
@@ -349,7 +349,7 @@
<canvas id="rp-image-signature-pad" <canvas id="rp-image-signature-pad"
width="560" width="560"
height="360" 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; display: block; margin: 0 auto; box-shadow: 0 1px 3px rgba(0,0,0,0.1);"></canvas>
} }
<div style="border-top: 2px solid #e9ecef; margin-top: 1.5rem; padding-top: 1.5rem;"> <div style="border-top: 2px solid #e9ecef; margin-top: 1.5rem; padding-top: 1.5rem;">