修复任务详情脚本行数展示

This commit is contained in:
whyour
2023-12-17 17:53:15 +08:00
parent be1d68c0d1
commit ca8790bbec
7 changed files with 20 additions and 13 deletions
+2 -3
View File
@@ -107,10 +107,9 @@ const CronDetailModal = ({
value={value}
options={{
fontSize: 12,
minimap: { enabled: false },
lineNumbersMinChars: 3,
fontFamily: 'Source Code Pro',
glyphMargin: false,
wordWrap: 'on',
}}
onMount={(editor, monaco) => {
editorRef.current = editor;
@@ -364,7 +363,7 @@ const CronDetailModal = ({
<div className="crontab-title-wrapper">
<div style={{ minWidth: 0 }}>
<Typography.Text
style={{width: '100%'}}
style={{ width: '100%' }}
ellipsis={{ tooltip: currentCron.name }}
>
{currentCron.name}
+2 -1
View File
@@ -23,6 +23,7 @@
padding: 12px;
max-height: calc(80vh - 57px);
max-height: calc(80vh - var(--vh-offset, 57px));
word-wrap: unset;
}
.ant-card-body {
@@ -197,4 +198,4 @@ body[data-mode='desktop'] {
.cron.pinned-cron > td {
background: #f2f2f2;
}
}