diff --git a/apps/OpenSign/src/components/pdf/PlaceholderType.js b/apps/OpenSign/src/components/pdf/PlaceholderType.js
index 65d0ff273..f54768692 100644
--- a/apps/OpenSign/src/components/pdf/PlaceholderType.js
+++ b/apps/OpenSign/src/components/pdf/PlaceholderType.js
@@ -2,7 +2,6 @@ import React, { useEffect, useState, forwardRef, useRef } from "react";
import {
getMonth,
getYear,
- isMobile,
onChangeHeightOfTextArea,
onChangeInput,
radioButtonWidget,
@@ -14,7 +13,10 @@ import DatePicker from "react-datepicker";
import "react-datepicker/dist/react-datepicker.css";
import "../../styles/signature.css";
import RegexParser from "regex-parser";
-
+const textWidgetCls =
+ "w-full h-full md:min-w-full md:min-h-full z-[999] text-[12px] rounded-[2px] border-[1px] border-[#007bff] overflow-hidden resize-none outline-none text-base-content bg-base-100 whitespace-pre-wrap";
+const selectWidgetCls =
+ "w-full h-full absolute left-0 top-0 border-[1px] border-[#007bff] rounded-[2px] focus:outline-none bg-base-100 text-base-content";
function PlaceholderType(props) {
const type = props?.pos?.type;
const [selectOption, setSelectOption] = useState("");
@@ -137,13 +139,13 @@ function PlaceholderType(props) {
const ExampleCustomInput = forwardRef(({ value, onClick }, ref) => (
{value}
-
+
));
ExampleCustomInput.displayName = "ExampleCustomInput";
@@ -304,17 +306,13 @@ function PlaceholderType(props) {
case "signature":
return props.pos.SignUrl ? (
) : (
-
+
{props?.handleUserName &&
props?.handleUserName(
props?.data?.Id,
@@ -326,17 +324,13 @@ function PlaceholderType(props) {
case "stamp":
return props.pos.SignUrl ? (

) : (
-
+
{props?.handleUserName &&
props?.handleUserName(
props?.data?.Id,
@@ -417,12 +411,7 @@ function PlaceholderType(props) {
false
);
}}
- className={
- isMobile
- ? "labelTextArea labelWidthMobile"
- : "labelTextArea labelWidthDesktop"
- }
- style={{ whiteSpace: "pre-wrap", color: "initial" }}
+ className={textWidgetCls}
cols="50"
/>
) : (
@@ -438,9 +427,8 @@ function PlaceholderType(props) {
case "dropdown":
return props.data?.signerObjId === props.signerObjId ? (
) : (
{props.pos?.options?.name ? props.pos.options.name : type}
@@ -479,17 +467,13 @@ function PlaceholderType(props) {
case "initials":
return props.pos.SignUrl ? (

) : (
-
+
{props?.handleUserName &&
props?.handleUserName(
props?.data?.Id,
@@ -520,12 +504,7 @@ function PlaceholderType(props) {
isDefault
);
}}
- className={
- isMobile
- ? "labelTextArea labelWidthMobile"
- : "labelTextArea labelWidthDesktop"
- }
- style={{ whiteSpace: "pre-wrap", color: "initial" }}
+ className={textWidgetCls}
cols="50"
/>
) : (
@@ -559,12 +538,7 @@ function PlaceholderType(props) {
false
);
}}
- className={
- isMobile
- ? "labelTextArea labelWidthMobile"
- : "labelTextArea labelWidthDesktop"
- }
- style={{ whiteSpace: "pre-wrap", color: "initial" }}
+ className={textWidgetCls}
cols="50"
/>
) : (
@@ -598,12 +572,7 @@ function PlaceholderType(props) {
false
);
}}
- className={
- isMobile
- ? "labelTextArea labelWidthMobile"
- : "labelTextArea labelWidthDesktop"
- }
- style={{ whiteSpace: "pre-wrap", color: "initial" }}
+ className={textWidgetCls}
cols="50"
/>
) : (
@@ -655,8 +624,7 @@ function PlaceholderType(props) {
}
onBlur={handleInputBlur}
closeOnScroll={true}
- className="inputPlaceholder"
- style={{ outlineColor: "#007bff" }}
+ className={`${selectWidgetCls} outline-[#007bff]`}
selected={
props?.startDate
? props?.startDate
@@ -679,17 +647,13 @@ function PlaceholderType(props) {
case "image":
return props.pos.SignUrl ? (

) : (
-
+
{props?.handleUserName &&
props?.handleUserName(
props?.data?.Id,
@@ -720,12 +684,7 @@ function PlaceholderType(props) {
false
);
}}
- className={
- isMobile
- ? "labelTextArea labelWidthMobile"
- : "labelTextArea labelWidthDesktop"
- }
- style={{ whiteSpace: "pre-wrap", color: "initial" }}
+ className={textWidgetCls}
cols="50"
/>
) : (
@@ -791,31 +750,18 @@ function PlaceholderType(props) {
false
);
}}
- className={
- isMobile
- ? "labelTextArea labelWidthMobile"
- : "labelTextArea labelWidthDesktop"
- }
- style={{
- whiteSpace: "pre-wrap",
- overflow: "hidden",
- color: "initial"
- }}
+ className={textWidgetCls}
cols="50"
/>
);
default:
return props.pos.SignUrl ? (
-
+
) : (
diff --git a/apps/OpenSign/src/pages/Form.js b/apps/OpenSign/src/pages/Form.js
index 13449f78a..68483c803 100644
--- a/apps/OpenSign/src/pages/Form.js
+++ b/apps/OpenSign/src/pages/Form.js
@@ -701,15 +701,17 @@ const Forms = (props) => {
required
/>
-
-
- handleStrInput(e)}
- />
-
+ {props.title === "New Template" && (
+
+
+ handleStrInput(e)}
+ />
+
+ )}
{props.signers && (
{
{image ? (

@@ -401,7 +401,7 @@ const ManageSign = () => {
className="intialSignature"
>

{
dotSize={1}
/>
)}
-
+
{!isInitials && (
-
+
{allColor.map((data, key) => {
return (
{
0 ? "h-[317px]" : "h-full"
} overflow-x-auto w-full`}
>
@@ -1604,7 +1604,11 @@ const ReportTable = (props) => {
)}
{props.List?.length <= 0 && (
-
+
![]()
{
return (
-
+
);
};
diff --git a/apps/OpenSign/src/primitives/Tooltip.js b/apps/OpenSign/src/primitives/Tooltip.js
index 1264e86e1..bb723580d 100644
--- a/apps/OpenSign/src/primitives/Tooltip.js
+++ b/apps/OpenSign/src/primitives/Tooltip.js
@@ -6,13 +6,10 @@ const Tooltip = ({ id, message, url, iconColor }) =>