From 527c5be42c73fa63909ec5e5c03b39ef9aad82df Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs Date: Tue, 26 Dec 2023 23:03:27 +0530 Subject: [PATCH] add attach user icon in mobile view --- .../Component/component/placeholderBorder.js | 14 +++++---- .../src/Component/component/renderPdf.js | 31 ++++++++++++++++--- 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/microfrontends/SignDocuments/src/Component/component/placeholderBorder.js b/microfrontends/SignDocuments/src/Component/component/placeholderBorder.js index 7cdd3752c..146fa7a73 100644 --- a/microfrontends/SignDocuments/src/Component/component/placeholderBorder.js +++ b/microfrontends/SignDocuments/src/Component/component/placeholderBorder.js @@ -10,12 +10,14 @@ function PlaceholderBorder(props) { style={{ borderColor: themeColor(), borderStyle: "dashed", - width: props.pos.Width - ? props.pos.Width + getResizeBorderExtraWidth - : 150 + getResizeBorderExtraWidth, - height: props.pos.Height - ? props.pos.Height + getResizeBorderExtraWidth - : 60 + getResizeBorderExtraWidth, + // width: props.pos.Width + // ? props.pos.Width + getResizeBorderExtraWidth + // : 150 + getResizeBorderExtraWidth, + // height: props.pos.Height + // ? props.pos.Height + getResizeBorderExtraWidth + // : 60 + getResizeBorderExtraWidth, + width: props?.posWidth(props.pos) + getResizeBorderExtraWidth, + height: props?.posHeight(props.pos) + getResizeBorderExtraWidth, borderWidth: "0.2px", overflow: "hidden" }} diff --git a/microfrontends/SignDocuments/src/Component/component/renderPdf.js b/microfrontends/SignDocuments/src/Component/component/renderPdf.js index a692e5391..6d1b4b123 100644 --- a/microfrontends/SignDocuments/src/Component/component/renderPdf.js +++ b/microfrontends/SignDocuments/src/Component/component/renderPdf.js @@ -598,7 +598,7 @@ function RenderPdf({ }} > - +
{ const dataNewPlace = addZIndex( @@ -617,6 +617,17 @@ function RenderPdf({ }); }} > + { + e.stopPropagation(); + handleLinkUser(data.Id); + setUniqueId(data.Id); + }} + style={{ + color: "#188ae2" + }} + > { @@ -748,7 +759,7 @@ function RenderPdf({ }} > - +
{ if (!isDragging && isMobile) { @@ -761,6 +772,17 @@ function RenderPdf({ } }} > + { + e.stopPropagation(); + handleLinkUser(data.Id); + setUniqueId(data.Id); + }} + style={{ + color: "#188ae2" + }} + > { @@ -1053,7 +1075,6 @@ function RenderPdf({ style={{ cursor: "all-scroll", background: data.blockColor, - zIndex: pos.zIndex }} className="signYourselfBlock" @@ -1110,7 +1131,7 @@ function RenderPdf({ }} > - +
- + )