1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00

fix-finished-btn (#2740)

This commit is contained in:
Michael An
2019-01-02 11:28:39 +08:00
committed by Daniel Pan
parent d3fb676cb7
commit be2f32d8e7
2 changed files with 14 additions and 4 deletions

View File

@@ -192,7 +192,6 @@
.review-state {
position: relative;
padding: 0.75rem 1.25rem;
margin: auto 0.5rem;
border: 1px solid transparent;
border-radius: 3px;
@@ -210,6 +209,11 @@
border-color: #f1c1c0;
}
.review-state-closed:focus,
.review-state-finished:focus {
box-shadow: 0 0 0 0;
}
img[src=""],img:not([src]){ /* for first loading img*/
opacity:0;
}

View File

@@ -755,11 +755,17 @@ class DraftReview extends React.Component {
}
{
this.state.reviewStatus === 'finished' &&
<div className="review-state review-state-finished">{gettext('Finished')}</div>
<div className="cur-file-operation">
<button className='btn review-state review-state-finished'
title={gettext('Finished')}>{gettext('Finished')}</button>
</div>
}
{
this.state.reviewStatus === 'closed' &&
<div className="review-state review-state-closed">{gettext('Closed')}</div>
<div className="cur-file-operation">
<button className='btn review-state review-state-closed'
title={gettext('Closed')}>{gettext('Closed')}</button>
</div>
}
</div>
</div>