mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 11:57:34 +00:00
optimize code (#4762)
This commit is contained in:
@@ -41,11 +41,11 @@ body {
|
||||
color: #808080;
|
||||
}
|
||||
/* for mobile */
|
||||
.seafile-comment {
|
||||
.file-view-body .seafile-comment {
|
||||
width: 100%;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.seafile-comment {
|
||||
.file-view-body .seafile-comment {
|
||||
width: 29%;
|
||||
}
|
||||
}
|
||||
|
@@ -168,3 +168,7 @@
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.seafile-editor-side-panel .seafile-comment {
|
||||
width: 100%;
|
||||
}
|
||||
|
@@ -1,8 +1,8 @@
|
||||
.review-side-panel .seafile-comment {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
}
|
||||
.seafile-comment-resizing {
|
||||
|
@@ -1,17 +1,17 @@
|
||||
.text-file-view {
|
||||
overflow: auto;
|
||||
}
|
||||
.ReactCodeMirror {
|
||||
.text-file-view .ReactCodeMirror {
|
||||
box-shadow: 0 0 6px #ccc;
|
||||
border: 1px solid #ccc;
|
||||
width: calc(100% - 40px);
|
||||
max-width: 950px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.CodeMirror {
|
||||
.text-file-view .CodeMirror {
|
||||
height: auto;
|
||||
min-height: 300px;
|
||||
}
|
||||
.CodeMirror-scroll {
|
||||
.text-file-view .CodeMirror-scroll {
|
||||
min-height: 300px;
|
||||
}
|
||||
|
Reference in New Issue
Block a user