1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-13 15:05:30 +00:00

repair shared md viewed bug in mobile (#5269)

This commit is contained in:
杨顺强 2022-09-28 13:27:13 +08:00 committed by GitHub
parent 195d366c89
commit b0a521a92e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -82,6 +82,17 @@
@media (max-width: 768px) {
.shared-file-view-body .md-view {
padding: 40px;
padding: 0 10px;
width: 100%;
}
.shared-file-view-body .md-view .article {
display: flex;
padding: 20px;
margin: 0;
}
.shared-file-view-body .seafile-markdown-outline {
display: none;
}
}

View File

@ -83,7 +83,7 @@ class FileContent extends React.Component {
return (
<div className="shared-file-view-body">
<div className="md-view h-100">
<div className="md-view">
<MarkdownViewer
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
markdownContent={this.state.markdownContent}