You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PasswordInput: Fixed Overlap for long Passwords and show/hide button
Long Passwords and show/hide buttons overlap with each other. I fixed this problem by doing the following:
- I changed the style of Password Text Input to take up as much space as needed. I did this by setting a flex of 1 to the password text input.
- I changed the positioning of the show/hide button from absolute to relative.
- I ensured Horizontal Alignment by setting the flex-direction of the parent view to 'row'.
- To fix the problem of the changing width of the text input, when the show/hide text changes, I replaced the show/hide text with a show/icon. The show/hide icon is an eye-open/eye-closed icon. This icon always has a fixed width and does not affect the text input.
I tested this on Android and IOS devices with different screen sizes, and it works fine on both platforms.
Fixes: zulip#5614
0 commit comments