mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
Merge pull request #1447 from OpenSignLabs/validation
fix: resolve spacing issue for text-type widgets in mobile view using draft template
This commit is contained in:
@@ -380,8 +380,10 @@ const DraftTemplate = () => {
|
||||
);
|
||||
const key = randomId();
|
||||
const dragTypeValue = item?.text ? item.text : monitor.type;
|
||||
const widgetWidth = defaultWidthHeight(dragTypeValue).width;
|
||||
const widgetHeight = defaultWidthHeight(dragTypeValue).height;
|
||||
const widgetWidth =
|
||||
defaultWidthHeight(dragTypeValue).width * containerScale;
|
||||
const widgetHeight =
|
||||
defaultWidthHeight(dragTypeValue).height * containerScale;
|
||||
let dropData = [],
|
||||
currentPagePosition;
|
||||
let placeHolder;
|
||||
|
||||
@@ -1558,10 +1558,10 @@ function PdfRequestFiles(props) {
|
||||
//`handlePublicUser` function to use create user from public role and create document from public template
|
||||
const handlePublicUser = async (e) => {
|
||||
e.preventDefault();
|
||||
setLoading(true);
|
||||
if (!emailRegex.test(contact.email)) {
|
||||
alert("Please enter a valid email address.");
|
||||
} else {
|
||||
setLoading(true);
|
||||
try {
|
||||
const params = {
|
||||
...contact,
|
||||
|
||||
Reference in New Issue
Block a user