mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 00:00:00 +00:00
improve ui (#2907)
This commit is contained in:
@@ -87,19 +87,19 @@ class RepoInfoBar extends React.Component {
|
||||
<div className={(usedRepoTags.length > 0 && readmeMarkdown) ? 'file-info-list mt-1' : 'file-info-list'}>
|
||||
{(readmeMarkdown !== null && parseInt(readmeMarkdown.size) > 1) &&
|
||||
<span className="file-info" onClick={this.toggleReadme}>
|
||||
<i className="file-flag fa fa-flag"></i>
|
||||
<span className="info-icon sf2-icon-readme"></span>
|
||||
<span className="used-tag-name">{readmeMarkdown.name}</span>
|
||||
</span>
|
||||
}
|
||||
{(readmeMarkdown !== null && parseInt(readmeMarkdown.size) < 2) &&
|
||||
<span className="file-info">
|
||||
<i className="file-flag fa fa-flag"></i>
|
||||
<span className="info-icon sf2-icon-readme"></span>
|
||||
<a className="used-tag-name" href={href} target='_blank'>{readmeMarkdown.name}</a>
|
||||
</span>
|
||||
}
|
||||
{this.props.draftCounts > 0 &&
|
||||
<span className="file-info">
|
||||
<i className="file-flag fa fa-pen"></i>
|
||||
<span className="info-icon sf2-icon-drafts"></span>
|
||||
<span className="used-tag-name">{gettext('draft')}</span>
|
||||
<span className="used-tag-files" onClick={this.toggleDrafts}>
|
||||
{this.props.draftCounts > 1 ? this.props.draftCounts + ' files' : this.props.draftCounts + ' file'}
|
||||
@@ -108,7 +108,7 @@ class RepoInfoBar extends React.Component {
|
||||
}
|
||||
{this.props.reviewCounts > 0 &&
|
||||
<span className="file-info">
|
||||
<i className="file-flag fa fa-clipboard"></i>
|
||||
<span className="info-icon sf2-icon-review"></span>
|
||||
<span className="used-tag-name">{gettext('review')}</span>
|
||||
<span className="used-tag-files" onClick={this.toggleReviews}>
|
||||
{this.props.reviewCounts > 1 ? this.props.reviewCounts + ' files' : this.props.reviewCounts + ' file'}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
padding: 10px;
|
||||
border: 1px solid #e6e6dd;
|
||||
border-radius: 5px;
|
||||
background: #f8f8f8;
|
||||
/* background: #f8f8f8; */
|
||||
}
|
||||
|
||||
.used-tag-list {
|
||||
@@ -27,7 +27,7 @@
|
||||
}
|
||||
|
||||
.used-tag-files {
|
||||
color: #666;
|
||||
color: #888;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@@ -46,9 +46,9 @@
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.file-flag {
|
||||
font-size: 12px;
|
||||
color: #f19645;
|
||||
.info-icon {
|
||||
color: #888;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.readme-dialog-edit {
|
||||
|
Reference in New Issue
Block a user