mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-26 15:26:19 +00:00
optimize code (#5229)
This commit is contained in:
@@ -43,12 +43,6 @@
|
|||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wiki-pages-container .wiki-index-page {
|
|
||||||
margin-top: 20px;
|
|
||||||
margin-left: 2rem;
|
|
||||||
color: #eb8205;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wiki-md-viewer-rendered-content {
|
.wiki-md-viewer-rendered-content {
|
||||||
padding: 30px 0 0;
|
padding: 30px 0 0;
|
||||||
}
|
}
|
||||||
@@ -136,6 +130,7 @@ img[src=""] {
|
|||||||
@media (max-width: 991.98px) {
|
@media (max-width: 991.98px) {
|
||||||
.cur-view-content .wiki-page-container {
|
.cur-view-content .wiki-page-container {
|
||||||
padding: 0 14px;
|
padding: 0 14px;
|
||||||
|
padding-top: 30px;
|
||||||
}
|
}
|
||||||
.cur-view-content .wiki-page-content {
|
.cur-view-content .wiki-page-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@@ -31,7 +31,7 @@ class SidePanel extends Component {
|
|||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<div className="wiki-pages-container">
|
<div className="wiki-pages-container">
|
||||||
<div className='wiki-index-page'>{gettext('Index')}</div>
|
<div style={{marginTop: '2px'}}></div>
|
||||||
<IndexContentViewer
|
<IndexContentViewer
|
||||||
indexContent={this.props.indexContent}
|
indexContent={this.props.indexContent}
|
||||||
onLinkClick={this.props.onLinkClick}
|
onLinkClick={this.props.onLinkClick}
|
||||||
|
@@ -1235,7 +1235,7 @@ a.table-sort-op:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#wiki-file-content .article {
|
#wiki-file-content .article {
|
||||||
margin-right: 200px;
|
width: calc(100% - 200px);
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 40px;
|
padding-right: 40px;
|
||||||
}
|
}
|
||||||
@@ -1247,7 +1247,7 @@ a.table-sort-op:hover {
|
|||||||
#wiki-file-content .seafile-markdown-outline {
|
#wiki-file-content .seafile-markdown-outline {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 79px;
|
top: 79px;
|
||||||
right: 0;
|
right: 10px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
height: 80%;
|
height: 80%;
|
||||||
@@ -1260,10 +1260,12 @@ a.table-sort-op:hover {
|
|||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
#wiki-file-content {
|
#wiki-file-content {
|
||||||
left: 0;
|
left: 0;
|
||||||
|
padding: 30px 14px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wiki-file-content .article {
|
#wiki-file-content .article {
|
||||||
margin-right: 0;
|
margin: 0;
|
||||||
|
padding: 0 10px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user