diff --git a/apps/OpenSign/src/components/pdf/WidgetComponent.js b/apps/OpenSign/src/components/pdf/WidgetComponent.js index 101095648..f59ca7117 100644 --- a/apps/OpenSign/src/components/pdf/WidgetComponent.js +++ b/apps/OpenSign/src/components/pdf/WidgetComponent.js @@ -239,8 +239,8 @@ function WidgetComponent({ const updateWidgets = isSignYourself ? filterWidgets : isTemplateFlow - ? textWidgetData - : widget; + ? textWidgetData + : widget; return ( <> @@ -264,11 +264,7 @@ function WidgetComponent({ alignItems: "center", justifyContent: "center" }} - onClick={() => { - // if (signersdata?.length) { - handleModal(); - // } - }} + onClick={() => handleModal()} > { return ( -
+
{ diff --git a/apps/OpenSign/src/constant/Utils.js b/apps/OpenSign/src/constant/Utils.js index ba6556930..11fa10f74 100644 --- a/apps/OpenSign/src/constant/Utils.js +++ b/apps/OpenSign/src/constant/Utils.js @@ -288,26 +288,14 @@ export const getWidgetType = (item, marginLeft) => { marginLeft: marginLeft && `${marginLeft}px` }} > -
- - +
+ {!isMobile && ( + + )} + {item.type}
@@ -1090,8 +1078,8 @@ export const multiSignEmbed = async ( position.type === radioButtonWidget ? 10 : position.type === "checkbox" - ? 10 - : newUpdateHeight; + ? 10 + : newUpdateHeight; const newHeight = ind ? (ind > 0 ? widgetHeight : 0) : widgetHeight; if (signyourself) { diff --git a/apps/OpenSign/src/pages/PlaceHolderSign.js b/apps/OpenSign/src/pages/PlaceHolderSign.js index 35351be3e..8602e6505 100644 --- a/apps/OpenSign/src/pages/PlaceHolderSign.js +++ b/apps/OpenSign/src/pages/PlaceHolderSign.js @@ -487,12 +487,7 @@ function PlaceHolderSign() { setIsCheckbox(true); } else if (dragTypeValue === radioButtonWidget) { setIsRadio(true); - } else if ( - dragTypeValue !== textWidget && - dragTypeValue !== "signature" - ) { - setIsNameModal(true); - } + } setWidgetType(dragTypeValue); setSignKey(key); setCurrWidgetsDetails({}); diff --git a/apps/OpenSign/src/pages/TemplatePlaceholder.js b/apps/OpenSign/src/pages/TemplatePlaceholder.js index dc71aaa9c..c6069ac17 100644 --- a/apps/OpenSign/src/pages/TemplatePlaceholder.js +++ b/apps/OpenSign/src/pages/TemplatePlaceholder.js @@ -23,7 +23,6 @@ import { defaultWidthHeight, addWidgetOptions, textInputWidget, - textWidget, radioButtonWidget } from "../constant/Utils"; import RenderPdf from "../components/pdf/RenderPdf"; @@ -447,12 +446,7 @@ const TemplatePlaceholder = () => { setIsCheckbox(true); } else if (dragTypeValue === radioButtonWidget) { setIsRadio(true); - } else if ( - dragTypeValue !== textWidget && - dragTypeValue !== "signature" - ) { - setIsNameModal(true); - } + } setCurrWidgetsDetails({}); setWidgetType(dragTypeValue); setSignKey(key); diff --git a/apps/OpenSign/src/styles/signature.css b/apps/OpenSign/src/styles/signature.css index 8229cdb05..246c82ffd 100644 --- a/apps/OpenSign/src/styles/signature.css +++ b/apps/OpenSign/src/styles/signature.css @@ -163,7 +163,6 @@ .signatureBtn { border: 1.5px solid #47a3ad; - border-radius: 3px; display: flex; padding: 0px; @@ -1192,6 +1191,9 @@ option { min-width: 90%; overflow-y: auto; } + .signatureBtn { + width: max-content; + } .dropdownModal { position: fixed;