This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-13
lines changed Expand file tree Collapse file tree 2 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -316,6 +316,16 @@ exports[`Tests for Header component renders shorter menu items for mobile 1`] =
316
316
Docs
317
317
</a >
318
318
</li >
319
+ <li
320
+ class = " nav__tabs"
321
+ >
322
+ <a
323
+ class = " activeStyleTab"
324
+ href = " /download"
325
+ >
326
+ Download
327
+ </a >
328
+ </li >
319
329
<li
320
330
class = " nav__tabs"
321
331
>
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import logoDark from '../../images/logos/nodejs-logo-dark-mode.svg';
6
6
import { useMediaQuery } from '../../hooks/useMediaQuery' ;
7
7
8
8
const Header = ( ) : JSX . Element => {
9
- const isMobile = useMediaQuery ( '(max-width: 768px )' ) ;
9
+ const isMobile = useMediaQuery ( '(max-width: 870px )' ) ;
10
10
11
11
const handleThemeOnClick = (
12
12
e : MouseEvent < HTMLButtonElement , Event > | KeyboardEvent < HTMLButtonElement > ,
@@ -62,18 +62,16 @@ const Header = (): JSX.Element => {
62
62
{ isMobile ? 'Docs' : 'Documentation' }
63
63
</ a >
64
64
</ li >
65
- { ! isMobile && (
66
- < li className = "nav__tabs" >
67
- < Link
68
- to = "/download"
69
- className = "activeStyleTab"
70
- activeClassName = "active"
71
- partiallyActive
72
- >
73
- Download
74
- </ Link >
75
- </ li >
76
- ) }
65
+ < li className = "nav__tabs" >
66
+ < Link
67
+ to = "/download"
68
+ className = "activeStyleTab"
69
+ activeClassName = "active"
70
+ partiallyActive
71
+ >
72
+ Download
73
+ </ Link >
74
+ </ li >
77
75
< li className = "nav__tabs" >
78
76
< a
79
77
href = "https://nodejs.org/en/get-involved/"
You can’t perform that action at this time.
0 commit comments