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:
@@ -47,6 +47,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
.shared-file-view-body .md-view {
|
.shared-file-view-body .md-view {
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
padding: 70px 75px;
|
padding: 70px 75px;
|
||||||
@@ -57,6 +58,21 @@
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
overflow: auto;
|
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) {
|
@media (max-width: 991.98px) {
|
||||||
.shared-file-view-head {
|
.shared-file-view-head {
|
||||||
|
@@ -76,11 +76,11 @@ class FileContent extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="shared-file-view-body">
|
<div className="shared-file-view-body">
|
||||||
<div className="md-view">
|
<div className="md-view d-flex">
|
||||||
<MarkdownViewer
|
<MarkdownViewer
|
||||||
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
|
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
|
||||||
markdownContent={this.state.markdownContent}
|
markdownContent={this.state.markdownContent}
|
||||||
showTOC={false}
|
showTOC={true}
|
||||||
serviceURL={serviceURL}
|
serviceURL={serviceURL}
|
||||||
sharedToken={sharedToken}
|
sharedToken={sharedToken}
|
||||||
repoID={repoID}
|
repoID={repoID}
|
||||||
|
Reference in New Issue
Block a user