Skip to content

Commit a497142

Browse files
style: problem style
1 parent 901b888 commit a497142

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

ui/src/components/tag-ellipsis/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<el-tag class="tag-ellipsis flex-between mb-8" effect="plain" v-bind="$attrs">
2+
<el-tag class="tag-ellipsis flex-between mb-8 w-full" effect="plain" v-bind="$attrs">
33
<slot></slot>
44
</el-tag>
55
</template>

ui/src/components/tag-group/index.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
</div>
2222
</template>
2323
<script setup lang="ts">
24-
2524
const props = defineProps<{
2625
tags: string[]
2726
size?: 'large' | 'default' | 'small'
@@ -34,5 +33,15 @@ const props = defineProps<{
3433
:deep(.el-tag__content) {
3534
width: 100%;
3635
}
36+
/* tag超出省略号 */
37+
.tag-ellipsis {
38+
box-sizing: border-box;
39+
max-width: 130px;
40+
.el-tag__content {
41+
overflow: hidden;
42+
white-space: nowrap;
43+
text-overflow: ellipsis;
44+
}
45+
}
3746
}
3847
</style>

ui/src/layout/layout-header/UserHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</div>
77

88
<div class="flex-between w-full">
9-
<div class="ml-24 flex align-center">
9+
<div class="ml-24 flex align-center w-120">
1010
<!-- 企业版: 工作空间下拉框-->
1111
<el-divider
1212
class="mr-8"

ui/src/styles/component.scss

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,3 @@
251251
padding: 4px 16px 12px 12px;
252252
}
253253
}
254-
255-
/* tag超出省略号 */
256-
.tag-ellipsis {
257-
box-sizing: border-box;
258-
max-width: 130px;
259-
.el-tag__content {
260-
overflow: hidden;
261-
white-space: nowrap;
262-
text-overflow: ellipsis;
263-
}
264-
}

0 commit comments

Comments
 (0)