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

Merge pull request #2616 from haiwen/title-scroll

fix-outline-scroll
This commit is contained in:
Daniel Pan
2018-12-08 12:07:07 +08:00
committed by GitHub
4 changed files with 15 additions and 15 deletions

View File

@@ -9,6 +9,7 @@ const viewerPropTypes = {
lastModified: PropTypes.string,
latestContributor: PropTypes.string,
markdownContent: PropTypes.string,
onContentRendered: PropTypes.func,
activeTitleIndex: PropTypes.number
};
@@ -22,7 +23,10 @@ class MarkdownContentViewer extends React.Component {
}
return (
<div className="markdown-content">
<MarkdownViewer markdownContent={this.props.markdownContent} showTOC={true} activeTitleIndex={this.props.activeTitleIndex}/>
<MarkdownViewer markdownContent={this.props.markdownContent} showTOC={true}
activeTitleIndex={this.props.activeTitleIndex}
onContentRendered={this.props.onContentRendered}
/>
<p id="wiki-page-last-modified">{gettext('Last modified by')} {this.props.latestContributor}, <span>{this.props.lastModified}</span></p>
</div>
);