This is an automated email from the ASF dual-hosted git repository. dockerzhang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push: new ef17b9e32d [INLONG-10641][Dashboard] Switching theme font color without inverse color (#10643) ef17b9e32d is described below commit ef17b9e32dd73f6726bed41ba331d1ca9820c541 Author: kamianlaida <165994047+wohainilao...@users.noreply.github.com> AuthorDate: Wed Jul 17 20:48:47 2024 +0800 [INLONG-10641][Dashboard] Switching theme font color without inverse color (#10643) --- inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx b/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx index 9f406c6c60..b61d119020 100644 --- a/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx +++ b/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx @@ -339,13 +339,12 @@ export const getTableColumns = (source, dim) => { title: item.auditName, dataIndex: item.auditId, render: text => { - let color = 'black'; if (text?.includes('+')) { - color = 'red'; + return <span style={{ color: 'red' }}>{text}</span>; } else if (text?.includes('-')) { - color = 'green'; + return <span style={{ color: 'green' }}>{text}</span>; } - return <span style={{ color: color }}>{text}</span>; + return <span>{text}</span>; }, })); return [