@@ -18,7 +18,7 @@ interface Entry {
18
18
19
19
function MenuItem ( entry : Entry ) {
20
20
const location = useLocation ( ) ;
21
- let classes = "flex block text-sm font-medium lg: px-3 px-0 py-1.5 rounded-md" ;
21
+ let classes = "flex block text-sm font-medium px-3 px-0 py-1.5 rounded-md" ;
22
22
if ( location . pathname . toLowerCase ( ) === entry . link . toLowerCase ( ) ||
23
23
entry . matches && entry . matches . test ( location . pathname . toLowerCase ( ) ) ) {
24
24
classes += " bg-gray-200" ;
@@ -41,35 +41,20 @@ function Menu(props: { left: Entry[], right: Entry[] }) {
41
41
42
42
return (
43
43
< header className = "lg:px-28 px-10 bg-white flex flex-wrap items-center py-4" >
44
- < style dangerouslySetInnerHTML = { {
45
- __html : `
46
- #menu-toggle:checked+#menu {
47
- display: block;
48
- }
49
- ` } } />
50
44
< div className = "flex justify-between items-center pr-3" >
51
45
< Link to = "/" >
52
46
< img src = { images . gitpodIcon } className = "h-6" />
53
47
</ Link >
54
48
</ div >
55
- < div className = "lg:hidden flex-grow" />
56
- < label htmlFor = "menu-toggle" className = "pointer-cursor lg:hidden block" >
57
- < svg className = "fill-current text-gray-700"
58
- xmlns = "http://www.w3.org/2000/svg" width = "20" height = "20" viewBox = "0 0 20 20" >
59
- < title > menu</ title >
60
- < path d = "M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z" > </ path >
61
- </ svg >
62
- </ label >
63
- < input className = "hidden" type = "checkbox" id = "menu-toggle" />
64
- < div className = "hidden lg:flex lg:flex-1 lg:items-center lg:w-auto w-full" id = "menu" >
65
- < nav className = "lg:flex-1" >
66
- < ul className = "lg:flex lg:flex-1 items-center justify-between text-base text-gray-700 space-x-2" >
49
+ < div className = "flex flex-1 items-center w-auto w-full" id = "menu" >
50
+ < nav className = "flex-1" >
51
+ < ul className = "flex flex-1 items-center justify-between text-base text-gray-700 space-x-2" >
67
52
{ props . left . map ( MenuItem ) }
68
53
< li className = "flex-1" > </ li >
69
54
{ props . right . map ( MenuItem ) }
70
55
</ ul >
71
56
</ nav >
72
- < div className = "lg: ml-3 flex items-center justify-start lg: mb-0 mb-4 pointer-cursor m-l-auto rounded-full border-2 border-white hover:border-gray-200 p-0.5 font-medium" >
57
+ < div className = "ml-3 flex items-center justify-start mb-0 pointer-cursor m-l-auto rounded-full border-2 border-white hover:border-gray-200 p-0.5 font-medium" >
73
58
< ContextMenu menuEntries = { [
74
59
{
75
60
title : ( user && User . getPrimaryEmail ( user ) ) || '' ,
0 commit comments