Skip to content

Commit

Permalink
fix: ui issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Nov 9, 2024
1 parent c01a4fc commit ffec127
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/components/ui/tag/Tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ defineOptions({ name: 'ClTag' });
<span class="prefix-icon">
<cl-icon v-if="icon" :icon="icon" :spinning="spinning" />
</span>
<span class="label">{{ label }}</span>
<span class="suffix-icon">
<cl-icon v-if="suffixIcon" :icon="suffixIcon" />
<span v-if="label" class="label">{{ label }}</span>
<span v-if="suffixIcon" class="suffix-icon">
<cl-icon :icon="suffixIcon" />
</span>
</template>
</el-tag>
Expand Down
12 changes: 2 additions & 10 deletions src/views/task/detail/actions/TaskDetailActionsCommon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ defineOptions({ name: 'ClTaskDetailActionsCommon' });
:status="form?.status"
size="large"
/>
</cl-nav-action-item>
<cl-nav-action-item>
<cl-duration
:duration="totalDuration"
is-tag
Expand All @@ -132,13 +134,3 @@ defineOptions({ name: 'ClTaskDetailActionsCommon' });
</cl-nav-action-item>
</cl-nav-action-group>
</template>

<style scoped>
.task-detail-actions-common:deep(.tag),
.task-detail-actions-common:deep(.el-button),
.task-detail-actions-common:deep(.task-results),
.task-detail-actions-common:deep(.task-status),
.task-detail-actions-common:deep(.duration) {
margin-right: 10px;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ defineOptions({ name: 'ClTaskDetailActionGroupNav' });
</cl-nav-action-item>
</cl-nav-action-group>
</template>

<style scoped lang="scss"></style>

0 comments on commit ffec127

Please sign in to comment.