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:
@@ -56,6 +56,7 @@ img[src=""] {
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
overflow:hidden;
|
||||
z-index: 1051; /* for mobile */
|
||||
}
|
||||
|
||||
.wiki-main-panel {
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user