1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 21:30:39 +00:00

[wiki] dir view: redesigned the UI for mobile; fixed 'can not scroll' bug (#4352)

This commit is contained in:
llj
2019-12-12 22:34:53 +08:00
committed by Daniel Pan
parent 7bc3793d8a
commit ec6535af8a
4 changed files with 35 additions and 17 deletions

View File

@@ -77,6 +77,8 @@ class MainPanel extends Component {
render() {
const errMessage = (<div className="message err-tip">{gettext('Folder does not exist.')}</div>);
const isViewingFile = this.props.pathExist && !this.props.isDataLoading && this.props.isViewFile;
return (
<div className="main-panel wiki-main-panel o-hidden">
<div className={`main-panel-north panel-top ${this.props.permission === 'rw' ? 'border-left-show' : ''}`}>
@@ -120,10 +122,10 @@ class MainPanel extends Component {
{this.renderNavPath()}
</div>
</div>
<div className="cur-view-content">
<div className={`cur-view-content ${isViewingFile ? 'o-hidden' : ''}`}>
{!this.props.pathExist && errMessage}
{this.props.pathExist && this.props.isDataLoading && <Loading />}
{(this.props.pathExist && !this.props.isDataLoading && this.props.isViewFile) && (
{isViewingFile && (
<WikiMarkdownViewer
markdownContent={this.props.content}
isFileLoading={this.props.isDataLoading}