Merge branch 'staging' into placeholder-mobile-view2

This commit is contained in:
prafull-opensignlabs
2023-11-09 20:36:33 +05:30
committed by GitHub
18 changed files with 1493 additions and 1131 deletions
@@ -37,7 +37,7 @@ function Header({
}) {
const isMobile = window.innerWidth < 767;
const navigate = useNavigate();
const isGuestSigner = localStorage.getItem("isGuestSigner");
//for go to previous page
function previousPage() {
changePage(-1);
@@ -81,14 +81,16 @@ function Header({
return (
<div
style={{ paddingBottom: "5px", paddingTop: "5px" }}
style={{ padding: !isGuestSigner && "5px 0px 5px 0px" }}
className="mobileHead"
>
{isMobile && isShowHeader ? (
<div
id="navbar"
className="stickyHead"
style={{ width: window.innerWidth - 30 + "px" }}
className={isGuestSigner ? "stickySignerHead" : "stickyHead"}
style={{
width: isGuestSigner ? window.innerWidth : window.innerWidth - 30 + "px"
}}
>
<div className="preBtn2">
<div
@@ -74,8 +74,10 @@ function RenderPdf({
return width;
}
};
//function for render placeholder block over pdf document
//check isGuestSigner is present in local if yes than handle login flow header in mobile view
const isGuestSigner = localStorage.getItem("isGuestSigner");
//function for render placeholder block over pdf document
const checkSignedSignes = (data) => {
const checkSign = signedSigners.filter(
(sign) => sign.objectId === data.signerObjId
@@ -268,7 +270,7 @@ function RenderPdf({
<div
style={{
border: "0.1px solid #ebe8e8",
marginTop:"30px"
marginTop: isGuestSigner && "30px"
}}
ref={drop}
id="container"