修复文件编辑页样式

This commit is contained in:
hanhh 2021-05-25 08:07:40 +08:00
parent 6256acbfca
commit 630ced4451
2 changed files with 10 additions and 7 deletions

View File

@ -6,14 +6,16 @@ body {
@import '~codemirror/lib/codemirror.css'; @import '~codemirror/lib/codemirror.css';
.CodeMirror { .log-modal-code {
height: auto; .CodeMirror {
} height: auto;
}
.CodeMirror-scroll { .CodeMirror-scroll {
height: auto; height: auto;
overflow-y: hidden; overflow-y: hidden;
overflow-x: auto; overflow-x: auto;
}
} }
.ql-container-wrapper { .ql-container-wrapper {

View File

@ -102,6 +102,7 @@ const CronLogModal = ({
{!loading && value && ( {!loading && value && (
<CodeMirror <CodeMirror
value={value} value={value}
className="log-modal-code"
options={{ options={{
lineWrapping: true, lineWrapping: true,
readOnly: true, readOnly: true,