Skip to content

Commit

Permalink
fix: import log show styles (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
nianiaJR authored Mar 19, 2024
1 parent e8d8451 commit 6cb77bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions app/pages/Import/TaskList/TaskItem/LogModal/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
}
}

.logContainer {
width: calc(100% - 200px);
.logContainer, .cloudLogContainer {
height: 100%;
overflow: auto;
padding: 10px 20px 120px;
Expand All @@ -62,6 +61,14 @@
gap: 2px;
}

.cloudLogContainer {
width: 100%;
}

.logContainer {
width: calc(100% - 200px);
}

.full {
width: 100%;
}
Expand Down
2 changes: 1 addition & 1 deletion app/pages/Import/TaskList/TaskItem/LogModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const LogModal = (props: IProps) => {
footer={false}
>
{platform !== 'cloud' && <Tabs className={styles.logTab} tabBarGutter={0} tabPosition="left" onChange={handleTabChange} items={items} />}
<div className={classnames(styles.logContainer, !disableLogDownload && styles.full)}>
<div className={classnames(platform === 'cloud' ? styles.cloudLogContainer : styles.logContainer, !disableLogDownload && styles.full)}>
{logData.map((log, index) => {
return (
<pre key={index} style={{ color: /^(\.\.\.)|^\(\d+/.test(log) ? '#fff' : '#e8c18b' }}>
Expand Down

0 comments on commit 6cb77bf

Please sign in to comment.