🐛 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:
Cristhian Zanforlin Lousa 2023-07-07 20:05:29 -03:00
commit 1294efc5db

View file

@ -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) => {