修复定时任务详情日志列表样式

This commit is contained in:
whyour 2023-10-26 23:03:58 +08:00
parent 62a29867a3
commit 8760ac2964
2 changed files with 12 additions and 5 deletions

View File

@ -362,8 +362,13 @@ const CronDetailModal = ({
<Modal
title={
<div className="crontab-title-wrapper">
<div>
<span>{currentCron.name}</span>
<div style={{ minWidth: 0 }}>
<Typography.Text
style={{width: '100%'}}
ellipsis={{ tooltip: currentCron.name }}
>
{currentCron.name}
</Typography.Text>
{currentCron.labels?.length > 0 && currentCron.labels[0] !== '' && (
<Divider type="vertical"></Divider>
)}

View File

@ -6,9 +6,9 @@
.card-wrapper {
.ant-card:last-child {
.ant-card-body {
min-height: 300px;
height: calc(90vh - 367px);
height: calc(90vh - var(--vh-offset, 0px) - 367px);
min-height: 0;
height: calc(80vh - 314px);
height: calc(80vh - var(--vh-offset, 0px) - 314px);
overflow-y: auto;
> div {
@ -21,6 +21,8 @@
.ant-modal-body {
background: #eee;
padding: 12px;
max-height: calc(80vh - 57px);
max-height: calc(80vh - var(--vh-offset, 57px));
}
.ant-card-body {