mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
修复定时任务日志滚动
This commit is contained in:
parent
5907553670
commit
e7be4999b0
|
@ -39,8 +39,16 @@ body {
|
|||
.ant-modal-body {
|
||||
overflow-y: auto;
|
||||
min-height: 300px;
|
||||
max-height: 80vh;
|
||||
max-height: calc(80vh - var(--vh-offset, 0px));
|
||||
max-height: calc(80vh - 110px);
|
||||
max-height: calc(80vh - var(--vh-offset, 110px));
|
||||
padding: 0;
|
||||
display: flex;
|
||||
|
||||
.log-container {
|
||||
width: 100%;
|
||||
padding: 24px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
|
|
|
@ -50,8 +50,8 @@ const CronLogModal = ({
|
|||
log && !logEnded(log) && !log.includes('任务未运行'),
|
||||
);
|
||||
setExecuting(hasNext);
|
||||
autoScroll();
|
||||
if (hasNext) {
|
||||
autoScroll();
|
||||
setTimeout(() => {
|
||||
getCronLog();
|
||||
}, 2000);
|
||||
|
@ -74,7 +74,7 @@ const CronLogModal = ({
|
|||
document
|
||||
.querySelector('#log-flag')!
|
||||
.scrollIntoView({ behavior: 'smooth' });
|
||||
}, 1000);
|
||||
}, 600);
|
||||
};
|
||||
|
||||
const cancel = () => {
|
||||
|
|
|
@ -130,6 +130,7 @@ const DependenceLogModal = ({
|
|||
</Button>,
|
||||
]}
|
||||
>
|
||||
<div className="log-container">
|
||||
{loading ? (
|
||||
<PageLoading />
|
||||
) : (
|
||||
|
@ -146,6 +147,7 @@ const DependenceLogModal = ({
|
|||
<Ansi>{value}</Ansi>
|
||||
</pre>
|
||||
)}
|
||||
</div>
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -108,6 +108,7 @@ const SubscriptionLogModal = ({
|
|||
</Button>,
|
||||
]}
|
||||
>
|
||||
<div className="log-container">
|
||||
{loading ? (
|
||||
<PageLoading />
|
||||
) : (
|
||||
|
@ -124,6 +125,7 @@ const SubscriptionLogModal = ({
|
|||
{value}
|
||||
</pre>
|
||||
)}
|
||||
</div>
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user