1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

[shared file view] markdown: display the 'table of content'

This commit is contained in:
llj
2022-05-25 18:48:56 +08:00
parent 8bc72defa5
commit 188f0a65d5
2 changed files with 19 additions and 3 deletions

View File

@@ -47,6 +47,7 @@
overflow: auto;
}
/*
.shared-file-view-body .md-view {
min-height: 400px;
padding: 70px 75px;
@@ -57,6 +58,21 @@
background: #fff;
overflow: auto;
}
*/
.shared-file-view-body .article {
min-height: calc(100% - 40px);
background: #fff;
padding: 40px 60px;
margin: 20px 40px;
border: 1px solid #e6e6dd;
}
.shared-file-view-body .seafile-markdown-outline {
position: static;
width: 300px;
border-left: 1px solid #e6e6dd;
flex-shrink: 0;
}
@media (max-width: 991.98px) {
.shared-file-view-head {

View File

@@ -76,11 +76,11 @@ class FileContent extends React.Component {
return (
<div className="shared-file-view-body">
<div className="md-view">
<div className="md-view d-flex">
<MarkdownViewer
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
markdownContent={this.state.markdownContent}
showTOC={false}
showTOC={true}
serviceURL={serviceURL}
sharedToken={sharedToken}
repoID={repoID}