Commit 6a8246d
committed
PasswordInput: Fix 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 Input to take up as much space as
needed. I did this by setting a flex of 1 to the Password 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 removed hide text from messages_en.json since it is not in the
app.
I tested this on Android and IOS devices with different screen
sizes, and it works fine on both platforms.
Fixes: #56141 parent ff4e8a3 commit 6a8246d
File tree
2 files changed
+17
-10
lines changed- src/common
- static/translations
2 files changed
+17
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 14 | | |
19 | 15 | | |
20 | | - | |
| 16 | + | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
48 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
49 | 57 | | |
50 | | - | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
| |||
0 commit comments