修复日志弹框样式

This commit is contained in:
hanhh 2021-08-06 14:46:42 +08:00
parent f2dbb64984
commit 25236958ff
2 changed files with 14 additions and 12 deletions

View File

@ -14,9 +14,18 @@ body {
background-color: rgb(248, 248, 248); background-color: rgb(248, 248, 248);
} }
.log-modal .ant-modal { .log-modal {
padding-bottom: 0 !important; .ant-modal {
width: 580px !important; padding-bottom: 0 !important;
width: 580px !important;
}
pre {
white-space: break-spaces;
line-height: 17px;
margin-bottom: 0;
overflow: hidden;
}
} }
.monaco-editor:not(.rename-box) { .monaco-editor:not(.rename-box) {

View File

@ -108,20 +108,13 @@ const CronLogModal = ({
{!loading && value && ( {!loading && value && (
<pre <pre
style={ style={
!isPhone isPhone
? { ? {
whiteSpace: 'break-spaces',
lineHeight: '17px',
marginBottom: 0,
}
: {
whiteSpace: 'break-spaces',
lineHeight: '17px',
marginBottom: 0,
fontFamily: 'Source Code Pro', fontFamily: 'Source Code Pro',
width: 375, width: 375,
zoom: 0.83, zoom: 0.83,
} }
: {}
} }
> >
{value} {value}