Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions apps/OpenSign/src/pages/Managesign.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Copy link

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two spaces between 'mysignatureCanvas' and 'relative' in the className. This should be a single space for consistency.

Copilot uses AI. Check for mistakes.
<img
alt="signature"
src={image}
Expand All @@ -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())
Expand Down
48 changes: 43 additions & 5 deletions apps/OpenSign/src/styles/signature.css
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
Expand All @@ -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;
Expand All @@ -48,6 +57,7 @@
width: 150px;
height: 150px;
}

.checked-radio::after {
content: "";
position: absolute;
Expand All @@ -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 */
Expand Down Expand Up @@ -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;
}
Expand All @@ -115,6 +132,7 @@
.ScrollbarsCustom-TrackY {
width: 4px !important;
}

.ScrollbarsCustom-TrackX {
height: 4px !important;
}
Expand Down Expand Up @@ -143,6 +161,7 @@
overflow: hidden !important;
text-overflow: ellipsis;
}

.disabled {
opacity: 0.5;
/* Example: reduce opacity to visually indicate disabled state */
Expand Down Expand Up @@ -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;
}
}
Expand All @@ -441,6 +460,12 @@ option {
width: 300px;
height: 120px;
}

.mysignatureCanvas {
width: 300px;
height: 118px;
}

.tabWidth {
width: 300px;
}
Expand All @@ -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;
}
Expand All @@ -491,6 +523,12 @@ option {
width: 230px;
height: 92px;
}

.mysignatureCanvas {
width: 230px;
height: 91px;
}

.tabWidth {
width: 230px;
}
Expand All @@ -507,4 +545,4 @@ option {
.uploadImgLogo {
font-size: 20px;
}
}
}