修复日志弹框样式

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,11 +14,20 @@ body {
background-color: rgb(248, 248, 248);
}
.log-modal .ant-modal {
.log-modal {
.ant-modal {
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) {
height: calc(100vh - 128px) !important;
height: calc(100vh - var(--vh-offset, 0px) - 128px) !important;

View File

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