修复文件编辑页样式

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';
.CodeMirror {
height: auto;
}
.log-modal-code {
.CodeMirror {
height: auto;
}
.CodeMirror-scroll {
height: auto;
overflow-y: hidden;
overflow-x: auto;
.CodeMirror-scroll {
height: auto;
overflow-y: hidden;
overflow-x: auto;
}
}
.ql-container-wrapper {

View File

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