瀏覽代碼

[Fix][UI Next][V1.0.0-Beta] Fix the task group queue display error. (#9890)

Amy0104 3 年之前
父節點
當前提交
52df6c1f66

+ 0 - 11
dolphinscheduler-ui-next/src/views/resource/task-group/queue/index.module.scss

@@ -20,17 +20,6 @@
   justify-content: flex-end;
   align-items: center;
   padding: 0 0 0 0;
-  .right {
-    display: flex;
-    justify-content: space-between;
-    align-items: center;
-    div {
-      margin-left: 5px;
-    }
-    button {
-      margin-left: 10px;
-    }
-  }
 }
 
 .table-card {

+ 4 - 3
dolphinscheduler-ui-next/src/views/resource/task-group/queue/index.tsx

@@ -23,7 +23,8 @@ import {
   NCard,
   NDataTable,
   NPagination,
-  NSelect
+  NSelect,
+  NSpace
 } from 'naive-ui'
 import Card from '@/components/card'
 import { SearchOutlined } from '@vicons/antd'
@@ -160,7 +161,7 @@ const taskGroupQueue = defineComponent({
       <div>
         <NCard>
           <div class={styles.toolbar}>
-            <div class={styles.right}>
+            <NSpace>
               <NSelect
                 size='small'
                 options={taskGroupOptions}
@@ -184,7 +185,7 @@ const taskGroupQueue = defineComponent({
                   <SearchOutlined />
                 </NIcon>
               </NButton>
-            </div>
+            </NSpace>
           </div>
         </NCard>
         <Card