diff --git a/frontend/src/components/dirent-detail/detail-comments-list.js b/frontend/src/components/dirent-detail/detail-comments-list.js index 0b8e2a9b61..0d4ab2ab98 100644 --- a/frontend/src/components/dirent-detail/detail-comments-list.js +++ b/frontend/src/components/dirent-detail/detail-comments-list.js @@ -138,27 +138,32 @@ class DetailCommentList extends React.Component { render() { const { repoID, filePath, fileParticipantList } = this.props; + const { commentsList } = this.state; return ( -
- -
+
+
{fileParticipantList && - +
+ +
); diff --git a/frontend/src/components/dirent-detail/dirent-details.js b/frontend/src/components/dirent-detail/dirent-details.js index e077a78358..bc20bbb37c 100644 --- a/frontend/src/components/dirent-detail/dirent-details.js +++ b/frontend/src/components/dirent-detail/dirent-details.js @@ -214,7 +214,7 @@ class DirentDetail extends React.Component {
{this.renderHeader(smallIconUrl, direntName)} - + {this.renderDetailBody(bigIconUrl, folderDirent)} - - + ); })} ) : @@ -217,8 +216,7 @@ class CommentPanel extends React.Component { />
- +
diff --git a/frontend/src/css/comments-list.css b/frontend/src/css/comments-list.css index 8aac8e7fc9..7bdbe3e6c7 100644 --- a/frontend/src/css/comments-list.css +++ b/frontend/src/css/comments-list.css @@ -3,7 +3,6 @@ border-left: 1px solid #e6e6dd; display: flex; flex-direction: column; - width: 29%; } .seafile-comment-title, .seafile-history-title { @@ -28,9 +27,6 @@ .seafile-history-title .seafile-history-title-close:hover { color: #888; } -.seafile-comment-list { - overflow-y: auto; -} .seafile-comment-item { padding: 15px 10px; margin-bottom: 0; @@ -133,9 +129,6 @@ .detail-comments { border-left: 0; } -.detail-comments .seafile-comment-list { - margin-top: 0; -} .detail-comments .seafile-comment-footer { min-height: 175px; } diff --git a/frontend/src/css/dirent-detail.css b/frontend/src/css/dirent-detail.css index 3fdcf12258..ef9b6de440 100644 --- a/frontend/src/css/dirent-detail.css +++ b/frontend/src/css/dirent-detail.css @@ -171,11 +171,6 @@ margin-bottom: 0.5rem; } -.detail-container .tab-content { - height: calc(100% - 73px); - overflow-y: auto; -} - .detail-container .nav-item .nav-link, .detail-container .nav-item .nav-link i { margin: 0 auto; }