forked from XiaoMo/ChatGPT-Next-Web
fix: #648 password input style
This commit is contained in:
parent
3cfec63a95
commit
174c745279
@ -19,11 +19,16 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-input {
|
.password-input-container {
|
||||||
|
max-width: 50%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
|
||||||
.password-eye {
|
.password-eye {
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.password-input {
|
||||||
|
min-width: 80%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,13 +60,17 @@ function PasswordInput(props: HTMLProps<HTMLInputElement>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles["password-input"]}>
|
<div className={styles["password-input-container"]}>
|
||||||
<IconButton
|
<IconButton
|
||||||
icon={visible ? <EyeIcon /> : <EyeOffIcon />}
|
icon={visible ? <EyeIcon /> : <EyeOffIcon />}
|
||||||
onClick={changeVisibility}
|
onClick={changeVisibility}
|
||||||
className={styles["password-eye"]}
|
className={styles["password-eye"]}
|
||||||
/>
|
/>
|
||||||
<input {...props} type={visible ? "text" : "password"} />
|
<input
|
||||||
|
{...props}
|
||||||
|
type={visible ? "text" : "password"}
|
||||||
|
className={styles["password-input"]}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user