diff --git a/frontend/src/css/wiki.css b/frontend/src/css/wiki.css index 81ca40a14b..8c45b1f063 100644 --- a/frontend/src/css/wiki.css +++ b/frontend/src/css/wiki.css @@ -56,6 +56,7 @@ img[src=""] { display:flex; flex-direction:column; overflow:hidden; + z-index: 1051; /* for mobile */ } .wiki-main-panel { diff --git a/frontend/src/wiki.js b/frontend/src/wiki.js index c2e590f6d4..205450a24b 100644 --- a/frontend/src/wiki.js +++ b/frontend/src/wiki.js @@ -74,7 +74,6 @@ class Wiki extends Component { } loadSidePanel = (initialPath) => { - if (hasIndex) { this.loadIndexNode(); } else { @@ -293,7 +292,7 @@ class Wiki extends Component { } onMenuClick = () => { - this.setState({closeSideBar: !this.state.closeSideBar,}); + this.setState({closeSideBar: !this.state.closeSideBar}); } onMainNavBarClick = (nodePath) => { @@ -363,6 +362,7 @@ class Wiki extends Component { if (node.path !== this.state.path) { this.showFile(node.path); } + this.onCloseSide(); } else { const w = window.open('about:blank'); const url = siteRoot + 'd/' + sharedToken + '/files/?p=' + Utils.encodePath(node.path);