1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

[mobile] published library: fixup for 'side panel' (#4790)

* [mobile] published library: fixup for 'side panel'

* [mobile] published library: close the side panel when visit a md file
This commit is contained in:
llj
2021-01-14 23:22:24 +08:00
committed by GitHub
parent 78008faee8
commit 03fd92dce9
2 changed files with 3 additions and 2 deletions

View File

@@ -56,6 +56,7 @@ img[src=""] {
display:flex;
flex-direction:column;
overflow:hidden;
z-index: 1051; /* for mobile */
}
.wiki-main-panel {

View File

@@ -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);