Skip to content

Commit 7704222

Browse files
fix: opensign-drive drop-down issue
1 parent 0b64908 commit 7704222

File tree

5 files changed

+42
-30
lines changed

5 files changed

+42
-30
lines changed

microfrontends/SignDocuments/src/Component/LegaDrive/LegaDrive.css

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,10 @@
8484
color: var(--mauve-8);
8585
}
8686

87-
8887
.dropdown-menu {
89-
9088
min-width: 10rem;
91-
9289
}
9390

94-
9591
.dropdown-item {
9692
display: block;
9793
width: 100%;
@@ -106,19 +102,15 @@
106102
cursor: pointer;
107103
}
108104

109-
110105
.dropdown-item:hover {
111106
background-color: #dad9db;
112107
color: var(--violet-11);
113-
114108
}
115109

116110
.itemColor {
117111
font-size: 13px !important;
118112
}
119113

120-
121-
122114
.folderComponent {
123115
margin: 30px;
124116
height: 100%;
@@ -491,41 +483,52 @@ a {
491483
display: none;
492484
}
493485

494-
.folderPath{
486+
.folderPath {
495487
overflow-x: auto;
496488
white-space: nowrap;
497489

498490
cursor: pointer;
499491
user-select: none;
500-
}
501-
.folderPath::-webkit-scrollbar {
492+
}
493+
494+
.folderPath::-webkit-scrollbar {
502495
display: none;
503496
/* for Chrome, Safari, and Opera */
504497
}
505498

499+
@media screen and (max-width:766px) {
500+
.itemColor {
501+
font-size: 10px !important;
502+
}
503+
504+
}
506505
@media (min-width: 310px) and (max-width:550px) {
507-
506+
508507
.pdfContainer {
509508
justify-content: space-around;
510509
}
510+
511511
.sort {
512-
padding: 2px;
512+
padding: 2px;
513513
}
514-
.folderComponent{
514+
515+
.folderComponent {
515516
margin: 10px;
516517
}
517-
518+
518519
}
519520

520-
@media screen and (max-width:309px) {
521-
521+
@media screen and (max-width:309px) {
522+
522523
.pdfContainer {
523524
justify-content: center;
524525
}
526+
525527
.sort {
526528
padding: 2px;
527-
}
528-
.folderComponent{
529-
margin: 10px;
530-
}
529+
}
530+
531+
.folderComponent {
532+
margin: 10px;
533+
}
531534
}

microfrontends/SignDocuments/src/Component/LegaDrive/LegaDrive.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,9 @@ function PdfFile() {
508508
<div className="dropMenuBD">
509509
<div
510510
id="folder-menu"
511-
className={isNewFol ? "dropdown show" : "dropdown"}
511+
className={
512+
isNewFol ? "dropdown show dropDownStyle" : "dropdown"
513+
}
512514
onClick={() => setIsNewFol(!isNewFol)}
513515
>
514516
<div className="sort">

microfrontends/SignDocuments/src/Component/component/renderPdf.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -457,12 +457,7 @@ function RenderPdf({
457457
zIndex: pos.zIndex
458458
}}
459459
className="placeholderBlock"
460-
onDrag={() =>
461-
handleTabDrag(
462-
pos.key
463-
// data.signerObjId
464-
)
465-
}
460+
onDrag={() => handleTabDrag(pos.key)}
466461
size={{
467462
width: pos.Width ? pos.Width : 150,
468463
height: pos.Height ? pos.Height : 60

microfrontends/SignDocuments/src/Component/placeHolderSign.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import {
2121
pdfNewWidthFun,
2222
contractDocument,
2323
contractUsers,
24-
getHostUrl
24+
getHostUrl,
25+
addZIndex
2526
} from "../utils/Utils";
2627
import RenderPdf from "./component/renderPdf";
2728
import ModalComponent from "./component/modalComponent";
@@ -430,6 +431,8 @@ function PlaceHolderSign() {
430431
//function for set and update x and y postion after drag and drop signature tab
431432
const handleStop = (event, dragElement, signerId, key) => {
432433
if (!isResize) {
434+
const dataNewPlace = addZIndex(signerPos, key, setZIndex);
435+
signerPos.splice(0, signerPos.length, ...dataNewPlace);
433436
const containerRect = document
434437
.getElementById("container")
435438
.getBoundingClientRect();

microfrontends/SignDocuments/src/css/signature.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ option {
542542
overflow-y: scroll;
543543
}
544544

545+
545546
.SelectTrigger:hover {
546547
border: none;
547548
outline: none;
@@ -647,12 +648,20 @@ option {
647648

648649
}
649650

651+
.dropDownStyle {
652+
width: auto;
653+
}
654+
650655
@media screen and (max-width:766px) {
651656

652657
.showPages {
653658
display: none;
654659
}
655660

661+
.dropdown-menu {
662+
min-width: 0rem !important;
663+
}
664+
656665
.signatureContainer {
657666
display: flex;
658667
flex-direction: column;
@@ -679,7 +688,7 @@ option {
679688

680689
#navbar {
681690
overflow: hidden;
682-
z-index: 99;
691+
z-index: 49;
683692
}
684693

685694
/* Navbar links */

0 commit comments

Comments
 (0)