diff --git a/apps/OpenSign/src/components/pdf/PlaceholderType.js b/apps/OpenSign/src/components/pdf/PlaceholderType.js index dcba623f6..a3bed4ccf 100644 --- a/apps/OpenSign/src/components/pdf/PlaceholderType.js +++ b/apps/OpenSign/src/components/pdf/PlaceholderType.js @@ -309,7 +309,7 @@ function PlaceholderType(props) { alt="signature" draggable="false" src={props.pos.SignUrl} - className="w-[99%] h-full object-contain" + className="w-full h-full object-contain" /> ) : (
@@ -327,7 +327,7 @@ function PlaceholderType(props) { alt="stamp" draggable="false" src={props.pos.SignUrl} - className="w-[99%] h-full object-contain" + className="w-full h-full object-contain" /> ) : (
@@ -470,7 +470,7 @@ function PlaceholderType(props) { alt="initials" draggable="false" src={props.pos.SignUrl} - className="w-[99%] h-full object-contain" + className="w-full h-full object-contain" /> ) : (
@@ -650,7 +650,7 @@ function PlaceholderType(props) { alt="image" draggable="false" src={props.pos.SignUrl} - className="w-[99%] h-full object-contain" + className="w-full h-full object-contain" /> ) : (
@@ -761,7 +761,7 @@ function PlaceholderType(props) { alt="image" draggable="false" src={props.pos.SignUrl} - className="w-[99%] h-full object-contain" + className="w-full h-full object-contain" />
) : ( diff --git a/apps/OpenSign/src/components/pdf/RenderPdf.js b/apps/OpenSign/src/components/pdf/RenderPdf.js index 7165062f0..2a8c7f65d 100644 --- a/apps/OpenSign/src/components/pdf/RenderPdf.js +++ b/apps/OpenSign/src/components/pdf/RenderPdf.js @@ -422,7 +422,8 @@ function RenderPdf({ style={{ position: "relative", boxShadow: "rgba(17, 12, 46, 0.15) 0px 48px 100px 0px", - height: window.innerHeight + "px" + height: window.innerHeight + "px", + zIndex: 0 }} noScrollY={false} noScrollX={scale === 1 ? true : false} @@ -600,7 +601,7 @@ function RenderPdf({ key={index} width={containerWH.width} scale={scale || 1} - className="z-0" + className={"-z-[1]"} // when user zoom-in in tablet widgets move backward that's why pass -z-[1] pageNumber={pageNumber} renderAnnotationLayer={false} renderTextLayer={false} diff --git a/apps/OpenSign/src/components/pdf/WidgetList.js b/apps/OpenSign/src/components/pdf/WidgetList.js index e4100a9d7..a80518b31 100644 --- a/apps/OpenSign/src/components/pdf/WidgetList.js +++ b/apps/OpenSign/src/components/pdf/WidgetList.js @@ -1,9 +1,7 @@ import React from "react"; import { getWidgetType } from "../../constant/Utils"; -import { useSelector } from "react-redux"; function WidgetList(props) { - const isHeader = useSelector((state) => state.showHeader); return props.updateWidgets.map((item, ind) => { return (
@@ -24,12 +22,10 @@ function WidgetList(props) { } }} onMouseMove={props?.handleDivClick} - onMouseDown={() => { - props?.handleMouseLeave(); - }} + onMouseDown={() => props?.handleMouseLeave()} onTouchStart={props?.handleDivClick} > - {item.ref && getWidgetType(item, isHeader)} + {item.ref && getWidgetType(item)}
); diff --git a/apps/OpenSign/src/components/sidebar/Sidebar.js b/apps/OpenSign/src/components/sidebar/Sidebar.js index 80e80d94f..fddf6ac8a 100644 --- a/apps/OpenSign/src/components/sidebar/Sidebar.js +++ b/apps/OpenSign/src/components/sidebar/Sidebar.js @@ -46,7 +46,7 @@ const Sidebar = ({ isOpen, closeSidebar }) => { }; return (