1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-30 21:50:59 +00:00

handle file change equal to zero (#2954)

This commit is contained in:
Michael An 2019-02-18 14:07:38 +08:00 committed by Daniel Pan
parent ca7e9c0233
commit 9d2c9923c4
2 changed files with 7 additions and 4 deletions

View File

@ -88,7 +88,9 @@
font-weight: 700;
}
.review-side-panel-body {
padding: 1rem 2rem;
padding: 1rem 2rem 3rem;
overflow-y: scroll;
height: 100%;
}
.review-side-panel-body .dirent-table-container {
padding-left: 0;
@ -190,7 +192,8 @@
.review-side-panel .tab-content {
height: 100%;
}
.review-side-panel .tab-content .comments {
.review-side-panel .tab-content .comments,
.review-side-panel .tab-content .tab-pane {
height: 100%;
}

View File

@ -884,10 +884,10 @@ class DraftReview extends React.Component {
<div className="review-side-panel-body">
<SidePanelReviewers
reviewers={this.state.reviewers}
toggleAddReviewerDialog={this.toggleAddReviewerDialog}/>
toggleAddReviewerDialog={this.toggleAddReviewerDialog}/>
<SidePanelAuthor/>
<UnresolvedComments number={this.state.unresolvedComments}/>
{ this.state.isShowDiff &&
{(this.state.isShowDiff === true && this.state.changedNodes.length > 0) &&
<SidePanelChanges
changedNumber={this.state.changedNodes.length}
scrollToChangedNode={this.scrollToChangedNode}/>