File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
app/src/components/layout Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ const Styled = {
17
17
width: 100%;
18
18
margin: 0 auto;
19
19
` ,
20
- Hamburger : styled . span `
20
+ Hamburger : styled . span < CollapsedProps > `
21
21
display: inline-block;
22
- position: absolute;
22
+ position: ${ props => ( props . collapsed ? ' absolute' : 'fixed' ) } ;
23
23
top: 35px;
24
- left: 10px;
24
+ margin- left: 10px;
25
25
z-index: 2;
26
26
padding: 4px;
27
27
@@ -72,7 +72,10 @@ const StandardLayout: React.FC = observer(({ children }) => {
72
72
return (
73
73
< Background >
74
74
< Container >
75
- < Hamburger onClick = { settingsStore . toggleSidebar } >
75
+ < Hamburger
76
+ collapsed = { ! settingsStore . sidebarVisible }
77
+ onClick = { settingsStore . toggleSidebar }
78
+ >
76
79
< Menu size = "large" />
77
80
</ Hamburger >
78
81
< Aside collapsed = { ! settingsStore . sidebarVisible } >
You can’t perform that action at this time.
0 commit comments