Skip to content

Commit

Permalink
perf: 美化绘画界面UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Jan 13, 2024
1 parent e41fcd5 commit e688e41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions web/src/components/MjLogsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function renderType(type) {
case 'BLEAND':
return <Tag color="lime" size='large'>图混合</Tag>;
default:
return <Tag color="black" size='large'>未知</Tag>;
return <Tag color="white" size='large'>未知</Tag>;
}
}

Expand All @@ -51,7 +51,7 @@ function renderCode(code) {
case 22:
return <Tag color="orange" size='large'>重复提交</Tag>;
default:
return <Tag color="black" size='large'>未知</Tag>;
return <Tag color="white" size='large'>未知</Tag>;
}
}

Expand All @@ -70,7 +70,7 @@ function renderStatus(type) {
case 'FAILURE':
return <Tag color="red" size='large'>失败</Tag>;
default:
return <Tag color="black" size='large'>未知</Tag>;
return <Tag color="white" size='large'>未知</Tag>;
}
}

Expand Down Expand Up @@ -173,7 +173,7 @@ const LogsTable = () => {
<div>
{
// 转换例如100%为数字100,如果text未定义,返回0
<Progress percent={text ? parseInt(text.replace('%', '')) : 0} showInfo={true}
<Progress stroke={record.status === "FAILURE"?"var(--semi-color-warning)":null} percent={text ? parseInt(text.replace('%', '')) : 0} showInfo={true}
aria-label="drawing progress"/>
}
</div>
Expand Down
1 change: 0 additions & 1 deletion web/src/pages/Midjourney/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { Header, Segment } from 'semantic-ui-react';
import MjLogsTable from '../../components/MjLogsTable';

const Midjourney = () => (
Expand Down

0 comments on commit e688e41

Please sign in to comment.