mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 17:02:47 +00:00
change published repo style and comment (#3865)
This commit is contained in:
@@ -225,7 +225,7 @@ class DirentDetail extends React.Component {
|
|||||||
<TabPane tabId="comments" className="comments h-100">
|
<TabPane tabId="comments" className="comments h-100">
|
||||||
<DetailCommentList
|
<DetailCommentList
|
||||||
repoID={this.props.repoID}
|
repoID={this.props.repoID}
|
||||||
filePath={(dirent && dirent.type === 'file') ? path + '/' + dirent.name : path}
|
filePath={(dirent && dirent.type === 'file') ? Utils.joinPath(path, dirent.name) : path}
|
||||||
/>
|
/>
|
||||||
</TabPane>
|
</TabPane>
|
||||||
</TabContent>
|
</TabContent>
|
||||||
|
@@ -39,6 +39,9 @@
|
|||||||
.wiki-pages-container .article {
|
.wiki-pages-container .article {
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
}
|
}
|
||||||
|
.wiki-pages-container .tree-view {
|
||||||
|
margin-top: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
.wiki-md-viewer-rendered-content {
|
.wiki-md-viewer-rendered-content {
|
||||||
padding: 30px 0 0;
|
padding: 30px 0 0;
|
||||||
|
@@ -143,7 +143,8 @@ class LibContentContainer extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkCurrentDirent = (deletedDirent) => {
|
checkCurrentDirent = (deletedDirent) => {
|
||||||
if (deletedDirent.name === this.state.currentDirent.name) {
|
let { currentDirent } = this.state;
|
||||||
|
if (currentDirent && deletedDirent.name === currentDirent.name) {
|
||||||
this.setState({currentDirent: null});
|
this.setState({currentDirent: null});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user