mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-14 07:24:58 +00:00
repair shared md viewed bug in mobile (#5269)
This commit is contained in:
parent
195d366c89
commit
b0a521a92e
@ -82,6 +82,17 @@
|
|||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.shared-file-view-body .md-view {
|
.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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ class FileContent extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="shared-file-view-body">
|
<div className="shared-file-view-body">
|
||||||
<div className="md-view h-100">
|
<div className="md-view">
|
||||||
<MarkdownViewer
|
<MarkdownViewer
|
||||||
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
|
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
|
||||||
markdownContent={this.state.markdownContent}
|
markdownContent={this.state.markdownContent}
|
||||||
|
Loading…
Reference in New Issue
Block a user