fix: content offset caused by empty slot (#6040)

#### What type of PR is this?

/area ui
/kind improvement

#### Which issue(s) this PR fixes:

Fixes #5877 

```release-note
修复Tag Icon为空时,后台文章的Tag内容不居中
```
pull/6049/head
mashirot 2024-06-06 14:43:21 +08:00 committed by GitHub
parent e446054813
commit f2a0c502e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 9 deletions

View File

@ -51,7 +51,8 @@ const classes = computed(() => {
h-5
text-xs
border
border-solid;
border-solid
px-1;
&.tag-default {
border: 1px solid #d9d9d9;
@ -82,13 +83,5 @@ const classes = computed(() => {
.tag-content {
@apply px-1;
}
.tag-left-icon {
@apply pl-1;
}
.tag-right-icon {
@apply pr-1;
}
}
</style>