🐛 fix(inputComponent): fix padding issue in password input field
The padding issue in the password input field was causing the text to be clipped. The issue was resolved by adjusting the padding classes based on the editNode and password conditions.
This commit is contained in:
parent
c749ebc297
commit
1294efc5db
1 changed files with 2 additions and 1 deletions
|
|
@ -42,7 +42,8 @@ export default function InputComponent({
|
|||
disabled ? " input-disable " : "",
|
||||
password && !pwdVisible && myValue !== "" ? " password text-clip " : "",
|
||||
editNode ? " input-edit-node " : " input-primary ",
|
||||
password && editNode ? "pr-8" : "pr-10"
|
||||
password && editNode ? "pr-8" : "",
|
||||
password && !editNode ? "pr-10" : ""
|
||||
)}
|
||||
placeholder={password && editNode ? "Key" : "Type something..."}
|
||||
onChange={(e) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue