From 717644ef5f50c36c031cf8bd2bfb9677d4453c14 Mon Sep 17 00:00:00 2001 From: cp3hnu Date: Thu, 22 Aug 2024 11:06:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=93=BE=E6=8E=A5=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=8B=E5=88=92=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-ui/src/global.less | 5 +++++ .../pages/Dataset/components/ResourceVersion/index.tsx | 6 ++++-- react-ui/src/pages/DevelopmentEnvironment/List/index.tsx | 4 +++- .../Experiment/components/ExperimentInstance/index.less | 2 +- react-ui/src/pages/Experiment/index.jsx | 8 ++++++-- .../src/pages/Model/components/NodeTooltips/index.less | 4 ++++ react-ui/src/pages/ModelDeployment/List/index.tsx | 6 +++++- react-ui/src/pages/Pipeline/index.jsx | 6 +++++- react-ui/src/pages/System/Dict/index.tsx | 1 + react-ui/src/pages/Tool/Gen/index.tsx | 1 - react-ui/src/styles/theme.less | 1 + 11 files changed, 35 insertions(+), 9 deletions(-) diff --git a/react-ui/src/global.less b/react-ui/src/global.less index 7471b78..8b1b44f 100644 --- a/react-ui/src/global.less +++ b/react-ui/src/global.less @@ -149,6 +149,11 @@ ol { z-index: 999; } +.kf-table-row-link:hover { + text-decoration: underline @underline-color; + text-underline-offset: 3px; +} + input:-webkit-autofill { transition: background-color 5000s ease-in-out 0s; } diff --git a/react-ui/src/pages/Dataset/components/ResourceVersion/index.tsx b/react-ui/src/pages/Dataset/components/ResourceVersion/index.tsx index 2e9f87b..8199d33 100644 --- a/react-ui/src/pages/Dataset/components/ResourceVersion/index.tsx +++ b/react-ui/src/pages/Dataset/components/ResourceVersion/index.tsx @@ -128,7 +128,7 @@ function ResourceVersion({ dataIndex: 'index', key: 'index', width: 80, - render(text: string, record: ResourceFileData, index: number) { + render(_text: string, _record: ResourceFileData, index: number) { return {index + 1}; }, }, @@ -137,7 +137,9 @@ function ResourceVersion({ dataIndex: 'file_name', key: 'file_name', render: (text: string, record: ResourceFileData) => ( - downloadAlone(record)}>{text} + downloadAlone(record)}> + {text} + ), }, { diff --git a/react-ui/src/pages/DevelopmentEnvironment/List/index.tsx b/react-ui/src/pages/DevelopmentEnvironment/List/index.tsx index db1d054..504a4d9 100644 --- a/react-ui/src/pages/DevelopmentEnvironment/List/index.tsx +++ b/react-ui/src/pages/DevelopmentEnvironment/List/index.tsx @@ -154,7 +154,9 @@ function EditorList() { width: '30%', render: (text, record) => record.url ? ( - gotoEditorPage(e, record)}>{text} + gotoEditorPage(e, record)}> + {text} + ) : ( {text ?? '--'} ), diff --git a/react-ui/src/pages/Experiment/components/ExperimentInstance/index.less b/react-ui/src/pages/Experiment/components/ExperimentInstance/index.less index 650b315..541af2b 100644 --- a/react-ui/src/pages/Experiment/components/ExperimentInstance/index.less +++ b/react-ui/src/pages/Experiment/components/ExperimentInstance/index.less @@ -33,7 +33,7 @@ } .operation { - width: 334px; + width: 344px; } } diff --git a/react-ui/src/pages/Experiment/index.jsx b/react-ui/src/pages/Experiment/index.jsx index e9ad682..9f3d55c 100644 --- a/react-ui/src/pages/Experiment/index.jsx +++ b/react-ui/src/pages/Experiment/index.jsx @@ -355,7 +355,11 @@ function Experiment() { title: '关联流水线名称', dataIndex: 'workflow_name', key: 'workflow_name', - render: (text, record) => gotoPipeline(e, record)}>{text}, + render: (text, record) => ( + gotoPipeline(e, record)}> + {text} + + ), width: '16%', }, { @@ -393,7 +397,7 @@ function Experiment() { { title: '操作', key: 'action', - width: 350, + width: 360, render: (_, record) => (