From fcd23532ad4d9eaf22f43b9f0c6ba1f45ba13bfd Mon Sep 17 00:00:00 2001 From: Jast Date: Fri, 10 Jan 2025 00:57:05 +0800 Subject: [PATCH] [Improve] Optimize task description display (#261) --- .../detail/task-definition.module.scss | 26 ++++++++++++ .../detail/task-definition.tsx | 42 +++++++++---------- 2 files changed, 46 insertions(+), 22 deletions(-) diff --git a/seatunnel-ui/src/views/task/synchronization-instance/detail/task-definition.module.scss b/seatunnel-ui/src/views/task/synchronization-instance/detail/task-definition.module.scss index 48de97d96..6c3e591b7 100644 --- a/seatunnel-ui/src/views/task/synchronization-instance/detail/task-definition.module.scss +++ b/seatunnel-ui/src/views/task/synchronization-instance/detail/task-definition.module.scss @@ -22,6 +22,10 @@ h4 { margin: 0; } + + .n-space { + padding: 14px 16px; + } } .left-panel { @@ -50,3 +54,25 @@ } } } + +.info-item { + margin-bottom: 16px; + + h4 { + font-size: 13px; + color: #8c8c8c; + margin: 0 0 6px 0; + font-weight: 500; + + strong { + color: #262626; + } + } + + p { + font-size: 14px; + color: #595959; + margin: 0; + line-height: 1.2; + } +} diff --git a/seatunnel-ui/src/views/task/synchronization-instance/detail/task-definition.tsx b/seatunnel-ui/src/views/task/synchronization-instance/detail/task-definition.tsx index 7a344174a..c4376bbaf 100644 --- a/seatunnel-ui/src/views/task/synchronization-instance/detail/task-definition.tsx +++ b/seatunnel-ui/src/views/task/synchronization-instance/detail/task-definition.tsx @@ -109,29 +109,27 @@ const TaskDefinition = defineComponent({ - -
-

{this.t('project.synchronization_instance.task_name')}

-

{this.jobConfig.name}

-
-
-

- {this.t('project.synchronization_instance.description')} -

-

{this.jobConfig.description}

-
-
-

{this.t('project.synchronization_instance.engine')}

-

{this.jobConfig.engine}

-
- {this.formatData().map((i: any) => ( -
-

{i.label}

-

{i.value}

+ +
+

{this.t('project.synchronization_instance.task_name')}

+

{this.jobConfig.name}

- ))} -
- +
+

{this.t('project.synchronization_instance.description')}

+

{this.jobConfig.description || '-'}

+
+
+

{this.t('project.synchronization_instance.engine')}

+

{this.jobConfig.engine}

+
+ {this.formatData().map((i: any) => ( +
+

{i.label}

+

{i.value || '-'}

+
+ ))} + + )