Skip to content

Commit 086d8ee

Browse files
Merge pull request #1889 from OpenSignLabs/updates-16770567266
fix: managesign report alignment and loader issue
2 parents 04f6e38 + 04543e8 commit 086d8ee

File tree

2 files changed

+45
-14
lines changed

2 files changed

+45
-14
lines changed

apps/OpenSign/src/pages/Managesign.jsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,8 @@ const ManageSign = () => {
324324
hidden
325325
/>
326326
<div className="relative">
327-
{isLoader && (
328-
<div className="absolute bg-black bg-opacity-30 z-50 w-full h-full flex justify-center items-center">
329-
<Loader />
330-
</div>
331-
)}
332327
{image ? (
333-
<div className="signatureCanvas relative border-[2px] border-[#888] rounded-box overflow-hidden">
328+
<div className="mysignatureCanvas relative border-[2px] border-[#888] rounded-box overflow-hidden">
334329
<img
335330
alt="signature"
336331
src={image}
@@ -342,10 +337,8 @@ const ManageSign = () => {
342337
ref={canvasRef}
343338
penColor={penColor}
344339
canvasProps={{
345-
width: "456px",
346-
height: "180px",
347340
className:
348-
"signatureCanvas border-[2px] border-[#888] rounded-box"
341+
"mysignatureCanvas border-[2px] border-[#888] rounded-box"
349342
}}
350343
onEnd={() =>
351344
handleSignatureChange(canvasRef.current.toDataURL())

apps/OpenSign/src/styles/signature.css

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@
66
.react-datepicker__input-container {
77
position: initial !important;
88
}
9+
910
.select-none-cls {
1011
-webkit-user-select: none;
1112
/* Disable text selection in WebKit browsers */
1213
-moz-user-select: none;
1314
user-select: none;
1415
}
16+
1517
.widgets {
1618
-webkit-user-select: none;
1719
/* Disable text selection in WebKit browsers */
1820
-moz-user-select: none;
1921
user-select: none;
2022
}
23+
2124
.radioButton {
2225
width: 100%;
2326
height: 100%;
@@ -33,12 +36,18 @@
3336
width: 440px;
3437
height: 167px;
3538
}
39+
3640
.tabWidth {
3741
border: 1px solid #f3f4f6;
3842
background-color: #f3f4f6;
3943
width: 440px;
4044
}
4145

46+
.mysignatureCanvas {
47+
width: 456px;
48+
height: 180px;
49+
}
50+
4251
[data-theme="opensigndark"] .tabWidth {
4352
border: 1px solid #1f2937 !important;
4453
background-color: #1f2937 !important;
@@ -48,6 +57,7 @@
4857
width: 150px;
4958
height: 150px;
5059
}
60+
5161
.checked-radio::after {
5262
content: "";
5363
position: absolute;
@@ -56,14 +66,15 @@
5666
width: 50%;
5767
height: 50%;
5868
border-radius: 9999px;
59-
background-color: #111111; /* blue-500 */
69+
background-color: #111111;
70+
/* blue-500 */
6071
}
6172

6273
.intialSignature {
6374
border: 2px solid #888;
6475
background-color: rgb(255, 255, 255);
65-
width: 183px;
66-
height: 183px;
76+
width: 180px;
77+
height: 180px;
6778
}
6879

6980
/* Dark mode support for initials box in /managesign */
@@ -100,6 +111,12 @@
100111
border-color: #4b5563 !important;
101112
}
102113

114+
/* Also support signature canvas for consistency */
115+
[data-theme="opensigndark"] .mysignatureCanvas {
116+
background-color: #1f2937 !important;
117+
border-color: #4b5563 !important;
118+
}
119+
103120
.penContainerDefault {
104121
width: 460px;
105122
}
@@ -115,6 +132,7 @@
115132
.ScrollbarsCustom-TrackY {
116133
width: 4px !important;
117134
}
135+
118136
.ScrollbarsCustom-TrackX {
119137
height: 4px !important;
120138
}
@@ -143,6 +161,7 @@
143161
overflow: hidden !important;
144162
text-overflow: ellipsis;
145163
}
164+
146165
.disabled {
147166
opacity: 0.5;
148167
/* Example: reduce opacity to visually indicate disabled state */
@@ -431,7 +450,7 @@ option {
431450
to prevent sudden quick movement (as the
432451
navigation bar gets a new position at the top of the
433452
page (position:fixed and top:0) */
434-
.stickyHead + .content {
453+
.stickyHead+.content {
435454
padding-top: 60px;
436455
}
437456
}
@@ -441,6 +460,12 @@ option {
441460
width: 300px;
442461
height: 120px;
443462
}
463+
464+
.mysignatureCanvas {
465+
width: 300px;
466+
height: 118px;
467+
}
468+
444469
.tabWidth {
445470
width: 300px;
446471
}
@@ -462,11 +487,18 @@ option {
462487
.scroll-hide::-webkit-scrollbar {
463488
display: none;
464489
}
490+
465491
@media screen and (max-width: 350px) and (min-width: 311px) {
466492
.signatureCanvas {
467493
width: 280px;
468494
height: 112px;
469495
}
496+
497+
.mysignatureCanvas {
498+
width: 280px;
499+
height: 111px;
500+
}
501+
470502
.tabWidth {
471503
width: 280px;
472504
}
@@ -491,6 +523,12 @@ option {
491523
width: 230px;
492524
height: 92px;
493525
}
526+
527+
.mysignatureCanvas {
528+
width: 230px;
529+
height: 91px;
530+
}
531+
494532
.tabWidth {
495533
width: 230px;
496534
}
@@ -507,4 +545,4 @@ option {
507545
.uploadImgLogo {
508546
font-size: 20px;
509547
}
510-
}
548+
}

0 commit comments

Comments
 (0)