Skip to content

Commit

Permalink
fixed the eye button (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanshikag1410 authored Nov 10, 2024
1 parent 39db517 commit b348c1f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/views/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,15 @@ const Login = () => {
},
},
endAdornment: (
<IconButton onClick={handleClickShowPassword}>
{showPassword ? <VisibilityOff /> : <Visibility />}
<IconButton onClick={handleClickShowPassword}
edge= "end"
sx={{
positon: "absolute",
right: 0, // keeps the icon at the right edge
padding: "2.0rem", // for better allignment
// fixed the eye button below
}}>
{showPassword ? <Visibility /> : <VisibilityOff />}
</IconButton>
),
}}
Expand Down Expand Up @@ -388,4 +395,4 @@ const Login = () => {
);
};

export default Login;
export default Login;

0 comments on commit b348c1f

Please sign in to comment.