This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Commit b18d235
style: Adjust Header's padding below 380px (#162)
While checking out responsive styles, observed a style bug that below 380px, the header nav items would display in an odd layout, which would cause UX issue like the hamburger menu wouldn’t open. Tried out this PR to:
* use `emotion` for styles in header's JSX so that it can support existing style code and hook into media query
* use padding 0 up to 380px, where the original problemetcal breakpoint started to occur
* update test snapshot.
* ~~update code format with "format" script.~~
##### Before Fix
<img width="377" alt="screen shot 2019-03-02 at 9 33 39 pm" src="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://user-images.githubusercontent.com/6441326/53690219-6db9d600-3d34-11e9-95c7-41077e4c211d.png" rel="nofollow">https://user-images.githubusercontent.com/6441326/53690219-6db9d600-3d34-11e9-95c7-41077e4c211d.png">
##### With Fix @ 320px breakpoint (common like the legacy iPhone 5)
<img width="326" alt="screen shot 2019-03-02 at 9 57 10 pm" src="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://user-images.githubusercontent.com/6441326/53690323-27657680-3d36-11e9-9eec-cc81873125ae.png" rel="nofollow">https://user-images.githubusercontent.com/6441326/53690323-27657680-3d36-11e9-9eec-cc81873125ae.png">1 parent 3a2abbc commit b18d235
3 files changed
Lines changed: 18 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
21 | | - | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | | - | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 8 | + | |
17 | 9 | | |
18 | 10 | | |
19 | 11 | | |
| |||
0 commit comments