1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

optimize code (#4762)

This commit is contained in:
杨顺强
2020-12-22 12:04:03 +08:00
committed by GitHub
parent cf4abe5e3e
commit dd0515cd99
5 changed files with 11 additions and 7 deletions

View File

@@ -41,11 +41,11 @@ body {
color: #808080; color: #808080;
} }
/* for mobile */ /* for mobile */
.seafile-comment { .file-view-body .seafile-comment {
width: 100%; width: 100%;
} }
@media (min-width: 768px) { @media (min-width: 768px) {
.seafile-comment { .file-view-body .seafile-comment {
width: 29%; width: 29%;
} }
} }

View File

@@ -168,3 +168,7 @@
display: none !important; display: none !important;
} }
} }
.seafile-editor-side-panel .seafile-comment {
width: 100%;
}

View File

@@ -1,8 +1,8 @@
.review-side-panel .seafile-comment { .review-side-panel .seafile-comment {
flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
width: 100%;
background-color: #fff; background-color: #fff;
} }
.seafile-comment-resizing { .seafile-comment-resizing {

View File

@@ -1,17 +1,17 @@
.text-file-view { .text-file-view {
overflow: auto; overflow: auto;
} }
.ReactCodeMirror { .text-file-view .ReactCodeMirror {
box-shadow: 0 0 6px #ccc; box-shadow: 0 0 6px #ccc;
border: 1px solid #ccc; border: 1px solid #ccc;
width: calc(100% - 40px); width: calc(100% - 40px);
max-width: 950px; max-width: 950px;
margin: 0 auto; margin: 0 auto;
} }
.CodeMirror { .text-file-view .CodeMirror {
height: auto; height: auto;
min-height: 300px; min-height: 300px;
} }
.CodeMirror-scroll { .text-file-view .CodeMirror-scroll {
min-height: 300px; min-height: 300px;
} }

View File

@@ -12,8 +12,8 @@
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seafile-editor-font/seafile-editor-font.css" /> <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seafile-editor-font/seafile-editor-font.css" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seafile-ui.css" /> <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seafile-ui.css" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub_react.css?t=1398068110" /> <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub_react.css?t=1398068110" />
{% render_bundle 'markdownEditor' 'css' %}
{% render_bundle 'commons' 'css' %} {% render_bundle 'commons' 'css' %}
{% render_bundle 'markdownEditor' 'css' %}
<link rel="stylesheet" type="text/css" media="print" href="{{ MEDIA_URL }}css/print_for_md_file_view.css" /> <link rel="stylesheet" type="text/css" media="print" href="{{ MEDIA_URL }}css/print_for_md_file_view.css" />
{% if branding_css != '' %}<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}{{ branding_css }}" />{% endif %} {% if branding_css != '' %}<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}{{ branding_css }}" />{% endif %}
{% if enable_branding_css %}<link rel="stylesheet" type="text/css" href="{% url 'custom_css' %}" />{% endif %} {% if enable_branding_css %}<link rel="stylesheet" type="text/css" href="{% url 'custom_css' %}" />{% endif %}