1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00
This commit is contained in:
Michael An
2019-01-05 18:12:33 +08:00
committed by Daniel Pan
parent 77e557820e
commit b5cc1ef09e
2 changed files with 10 additions and 10 deletions

View File

@@ -176,15 +176,6 @@ class DirPanel extends React.Component {
onTabNavClick={this.props.onTabNavClick}
/>
</div>
{(this.props.usedRepoTags.length > 0 && this.props.path === '/') && (
<div className="tags-summary-bar">
<FileTagsViewer
repoID={this.props.repoID}
currentPath={this.props.path}
usedRepoTags={this.props.usedRepoTags}
/>
</div>
)}
<div className="cur-view-content">
{this.props.errorMsg ?
<p className="error text-center">{this.props.errorMsg}</p> :
@@ -192,6 +183,15 @@ class DirPanel extends React.Component {
{!this.props.pathExist ?
errMessage :
<Fragment>
{(this.props.usedRepoTags.length > 0 && this.props.path === '/') && (
<div className="tags-summary-bar">
<FileTagsViewer
repoID={this.props.repoID}
currentPath={this.props.path}
usedRepoTags={this.props.usedRepoTags}
/>
</div>
)}
<DirentListView
path={this.props.path}
repoID={this.props.repoID}

View File

@@ -95,7 +95,7 @@
}
.tags-summary-bar {
margin: 16px 16px 4px;
margin-bottom: 5px;
padding: 0 10px;
border: 1px solid #e6e6dd;
border-radius: 5px;