fix: initial type signature bulry issue

This commit is contained in:
RaktimaNXG
2024-08-01 17:56:44 +05:30
parent 42cbe94af8
commit 10e0153018
+3 -3
View File
@@ -101,8 +101,8 @@ function SignPad({
onSaveSign(
null,
false,
textWidth > 150 ? 150 : textWidth,
textHeight > 35 ? 35 : textHeight
!isInitial && textWidth > 150 ? 150 : textWidth,
!isInitial && textHeight > 35 ? 35 : textHeight
);
} else {
setIsSignImg("");
@@ -215,7 +215,7 @@ function SignPad({
: fontSelect
? fontSelect
: "Fasthand";
const fontSizeValue = isInitial ? "20px" : "40px";
const fontSizeValue = "40px";
//creating span for getting text content width
const span = document.createElement("span");
span.textContent = textContent;