Skip to content

Commit

Permalink
perf:当执行完成后日志为空才展示空样式;时间线pending最小高度改为24
Browse files Browse the repository at this point in the history
  • Loading branch information
luoluoTH committed Sep 6, 2024
1 parent d685e64 commit eec458d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
height: 24px;
padding: 0;
}
.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-content {
min-height: 24px;
}
}
.log-heard {
color: var(--yakit-header-color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const LocalPluginLog: React.FC<LocalPluginLogProps> = React.memo((props)
return (
<div className={styles["log-body"]}>
<div className={styles["log-heard"]}>{currentTime} 日志查询结果</div>
{list.length === 0 ? (
{!loading && list.length === 0 ? (
<YakitEmpty style={{paddingTop: 48}} title='暂无日志信息' />
) : (
<Timeline
Expand Down

0 comments on commit eec458d

Please sign in to comment.