Skip to content

Commit 42cbe94

Browse files
fix: initial type signature issue
1 parent 912efeb commit 42cbe94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/OpenSign/src/components/pdf/SignPad.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function SignPad({
215215
: fontSelect
216216
? fontSelect
217217
: "Fasthand";
218-
const fontSizeValue = isInitial ? "60px" : "40px";
218+
const fontSizeValue = isInitial ? "20px" : "40px";
219219
//creating span for getting text content width
220220
const span = document.createElement("span");
221221
span.textContent = textContent;
@@ -229,7 +229,7 @@ function SignPad({
229229
// Draw the text content on the canvas
230230
const ctx = canvasElement.getContext("2d");
231231
const pixelRatio = window.devicePixelRatio || 1;
232-
const addExtraWidth = isInitial ? 20 : 50;
232+
const addExtraWidth = isInitial ? 10 : 50;
233233
const width = span.offsetWidth + addExtraWidth;
234234
const height = span.offsetHeight;
235235
setTextWidth(width);

0 commit comments

Comments
 (0)