1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +00:00

Code optimized (#2388)

This commit is contained in:
shanshuirenjia
2018-09-21 14:16:15 +08:00
committed by Daniel Pan
parent 6b62d3e653
commit 490a15deed
34 changed files with 306 additions and 318 deletions

View File

@@ -84,7 +84,7 @@ class MainPanel extends Component {
</div>
<CommonToolbar onSearchedClick={this.props.onSearchedClick} />
</div>
<div className="cur-view-main">
<div className="cur-view-container">
<div className="cur-view-path">
<div className="path-containter">
<a href={siteRoot + '#common/'} className="normal">{gettext("Libraries")}</a>
@@ -94,14 +94,16 @@ class MainPanel extends Component {
</div>
<PathToolbar />
</div>
<div className="cur-view-container table-container">
{ this.props.isViewFileState && <MarkdownViewer
markdownContent={this.props.content}
latestContributor={this.props.latestContributor}
lastModified = {this.props.lastModified}
onLinkClick={this.props.onLinkClick}
isFileLoading={this.props.isFileLoading}
/>}
<div className="cur-view-content">
{ this.props.isViewFileState &&
<MarkdownViewer
markdownContent={this.props.content}
latestContributor={this.props.latestContributor}
lastModified = {this.props.lastModified}
onLinkClick={this.props.onLinkClick}
isFileLoading={this.props.isFileLoading}
/>
}
{ !this.props.isViewFileState &&
<TreeDirView
node={this.props.changedNode}