Merge pull request #1889 from OpenSignLabs/updates-16770567266

fix: managesign report alignment and loader issue
This commit is contained in:
prafull-opensignlabs
2025-08-06 13:06:40 +05:30
committed by GitHub
2 changed files with 45 additions and 14 deletions
+2 -9
View File
@@ -324,13 +324,8 @@ const ManageSign = () => {
hidden
/>
<div className="relative">
{isLoader && (
<div className="absolute bg-black bg-opacity-30 z-50 w-full h-full flex justify-center items-center">
<Loader />
</div>
)}
{image ? (
<div className="signatureCanvas relative border-[2px] border-[#888] rounded-box overflow-hidden">
<div className="mysignatureCanvas relative border-[2px] border-[#888] rounded-box overflow-hidden">
<img
alt="signature"
src={image}
@@ -342,10 +337,8 @@ const ManageSign = () => {
ref={canvasRef}
penColor={penColor}
canvasProps={{
width: "456px",
height: "180px",
className:
"signatureCanvas border-[2px] border-[#888] rounded-box"
"mysignatureCanvas border-[2px] border-[#888] rounded-box"
}}
onEnd={() =>
handleSignatureChange(canvasRef.current.toDataURL())
+43 -5
View File
@@ -6,18 +6,21 @@
.react-datepicker__input-container {
position: initial !important;
}
.select-none-cls {
-webkit-user-select: none;
/* Disable text selection in WebKit browsers */
-moz-user-select: none;
user-select: none;
}
.widgets {
-webkit-user-select: none;
/* Disable text selection in WebKit browsers */
-moz-user-select: none;
user-select: none;
}
.radioButton {
width: 100%;
height: 100%;
@@ -33,12 +36,18 @@
width: 440px;
height: 167px;
}
.tabWidth {
border: 1px solid #f3f4f6;
background-color: #f3f4f6;
width: 440px;
}
.mysignatureCanvas {
width: 456px;
height: 180px;
}
[data-theme="opensigndark"] .tabWidth {
border: 1px solid #1f2937 !important;
background-color: #1f2937 !important;
@@ -48,6 +57,7 @@
width: 150px;
height: 150px;
}
.checked-radio::after {
content: "";
position: absolute;
@@ -56,14 +66,15 @@
width: 50%;
height: 50%;
border-radius: 9999px;
background-color: #111111; /* blue-500 */
background-color: #111111;
/* blue-500 */
}
.intialSignature {
border: 2px solid #888;
background-color: rgb(255, 255, 255);
width: 183px;
height: 183px;
width: 180px;
height: 180px;
}
/* Dark mode support for initials box in /managesign */
@@ -100,6 +111,12 @@
border-color: #4b5563 !important;
}
/* Also support signature canvas for consistency */
[data-theme="opensigndark"] .mysignatureCanvas {
background-color: #1f2937 !important;
border-color: #4b5563 !important;
}
.penContainerDefault {
width: 460px;
}
@@ -115,6 +132,7 @@
.ScrollbarsCustom-TrackY {
width: 4px !important;
}
.ScrollbarsCustom-TrackX {
height: 4px !important;
}
@@ -143,6 +161,7 @@
overflow: hidden !important;
text-overflow: ellipsis;
}
.disabled {
opacity: 0.5;
/* Example: reduce opacity to visually indicate disabled state */
@@ -431,7 +450,7 @@ option {
to prevent sudden quick movement (as the
navigation bar gets a new position at the top of the
page (position:fixed and top:0) */
.stickyHead + .content {
.stickyHead+.content {
padding-top: 60px;
}
}
@@ -441,6 +460,12 @@ option {
width: 300px;
height: 120px;
}
.mysignatureCanvas {
width: 300px;
height: 118px;
}
.tabWidth {
width: 300px;
}
@@ -462,11 +487,18 @@ option {
.scroll-hide::-webkit-scrollbar {
display: none;
}
@media screen and (max-width: 350px) and (min-width: 311px) {
.signatureCanvas {
width: 280px;
height: 112px;
}
.mysignatureCanvas {
width: 280px;
height: 111px;
}
.tabWidth {
width: 280px;
}
@@ -491,6 +523,12 @@ option {
width: 230px;
height: 92px;
}
.mysignatureCanvas {
width: 230px;
height: 91px;
}
.tabWidth {
width: 230px;
}
@@ -507,4 +545,4 @@ option {
.uploadImgLogo {
font-size: 20px;
}
}
}