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

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 <Modal
title={ title={
<div className="crontab-title-wrapper"> <div className="crontab-title-wrapper">
<div> <div style={{ minWidth: 0 }}>
<span>{currentCron.name}</span> <Typography.Text
style={{width: '100%'}}
ellipsis={{ tooltip: currentCron.name }}
>
{currentCron.name}
</Typography.Text>
{currentCron.labels?.length > 0 && currentCron.labels[0] !== '' && ( {currentCron.labels?.length > 0 && currentCron.labels[0] !== '' && (
<Divider type="vertical"></Divider> <Divider type="vertical"></Divider>
)} )}

View File

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