perf: 优化标签管理编辑按钮位置

This commit is contained in:
“huailei000”
2023-12-21 10:25:14 +08:00
committed by huailei
parent 1b52e4cb93
commit e324b16e1b

View File

@@ -66,11 +66,11 @@
<i class="fa fa-tag" /> <b>{{ getKey(label) }}</b>: {{ getValue(label) }} <i class="fa fa-tag" /> <b>{{ getKey(label) }}</b>: {{ getValue(label) }}
</el-tag> </el-tag>
</div> </div>
</div> <div class="tag-tip">
<div class="tag-tip"> <el-link @click="goToLabelList">
<el-link @click="goToLabelList"> {{ $t('labels.LabelList') }} <i class="fa fa-external-link" />
{{ $t('labels.LabelList') }} <i class="fa fa-external-link" /> </el-link>
</el-link> </div>
</div> </div>
</Dialog> </Dialog>
</div> </div>
@@ -214,6 +214,7 @@ export default {
.edit-btn { .edit-btn {
visibility: hidden; visibility: hidden;
position: relative; position: relative;
transition: all 1s;
& > i { & > i {
position: absolute; position: absolute;
top: 50%; top: 50%;
@@ -224,7 +225,6 @@ export default {
.label-container { .label-container {
display: flex; display: flex;
.label-formatter-col { .label-formatter-col {
flex: 1;
overflow: hidden; overflow: hidden;
} }
&:hover { &:hover {