Skip to content

Commit f1cf395

Browse files
fix: textInput widget popup select arrow key design
1 parent 4af3d8f commit f1cf395

File tree

3 files changed

+30
-16
lines changed

3 files changed

+30
-16
lines changed

apps/OpenSign/src/components/pdf/Placeholder.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,7 @@ function Placeholder(props) {
595595
disableDragging={
596596
props.isNeedSign
597597
? true
598-
: props.isPlaceholder &&
599-
!["date", textWidget].includes(props.pos.type)
598+
: props.isPlaceholder && ![textWidget].includes(props.pos.type)
600599
? false
601600
: !isDraggingEnabled
602601
}

apps/OpenSign/src/components/pdf/WidgetNameModal.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -129,27 +129,15 @@ const WidgetNameModal = (props) => {
129129
>
130130
<div style={{ width: "100%", position: "relative" }}>
131131
<input
132-
style={{
133-
padding: "0.5rem 0.75rem",
134-
width: "92%",
135-
borderWidth: "1px",
136-
borderColor: "#d1d5db",
137-
borderTopLeftRadius: "0.375rem",
138-
borderBottomLeftRadius: "0.375rem",
139-
outline: "none",
140-
fontSize: "0.75rem",
141-
position: "relative",
142-
zIndex: 2
143-
}}
132+
className="relative z-20 w-[87%] md:w-[92%] p-2.5 border-[1px] border-[#d1d5db] rounded-l-md outline-none text-xs"
144133
name="textvalidate"
145134
placeholder="Enter custom expression"
146135
value={formdata.textvalidate}
147136
onChange={(e) => handleChange(e)}
148137
// onBlur={() => handleBlurRegex()}
149138
/>
150139
<select
151-
style={{ position: "absolute", left: 0, zIndex: 1 }}
152-
className="addUserInput"
140+
className="validationlist addUserInput"
153141
name="textvalidate"
154142
value={formdata.textvalidate}
155143
onChange={(e) => handleChange(e)}

apps/OpenSign/src/styles/AddUser.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
color: #ffffff;
6161
outline: none;
6262
}
63+
6364
/* For classes: bg-[#188ae2] text-sm text-white px-4 py-2 rounded ml-2 shadow focus:outline-none */
6465
.resetbutton {
6566
background-color: #188ae2;
@@ -75,3 +76,29 @@
7576
outline: none;
7677
margin-left: 8px;
7778
}
79+
80+
.validationlist {
81+
position: absolute;
82+
left: 0;
83+
z-index: 1;
84+
appearance: none;
85+
-moz-appearance: "none";
86+
-webkit-appearance: "none";
87+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAnUlEQVR4nO2QMQrCQBBFX51NbWMp2uox7Gw8h22uYEguIZNKyB0lMIElTNzdGBvdB8PC8Gces5DJ/Cxn4Aa4QM5pbsgncQF6rQYoZ3IFcPey11jByRsaqzYuctqfZo8xki3QBURuRtDpfBQ74GEsaYHN5It8wYFEhgExlj2NniwRhC7qP70gRSRrCN6JZE2BJZJvCEb2QKVvJvMvvAD2WzaK/35kGAAAAABJRU5ErkJggg==");
88+
background-repeat: no-repeat;
89+
background-position: right 0.7rem top 50%;
90+
background-size: 1rem auto;
91+
}
92+
93+
94+
@media (max-width: 375px) {
95+
.validationlist {
96+
background-position: right 0.5rem top 50%;
97+
}
98+
}
99+
100+
@media (min-width:375px) and (max-width: 767px) {
101+
.validationlist {
102+
background-position: right 1rem top 50%;
103+
}
104+
}

0 commit comments

Comments
 (0)