Skip to content

Commit

Permalink
fix: content offset caused by empty slot (halo-dev#6040)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/area ui
/kind improvement

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

Fixes halo-dev#5877 

```release-note
修复Tag Icon为空时,后台文章的Tag内容不居中
```
  • Loading branch information
ShiinaKin authored and ruibaby committed Jun 6, 2024
1 parent 3dc5156 commit 32437b5
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions ui/packages/components/src/components/tag/Tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ const classes = computed(() => {
h-5
text-xs
border
border-solid;
border-solid
px-1;
&.tag-default {
border: 1px solid #d9d9d9;
Expand Down Expand Up @@ -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>

0 comments on commit 32437b5

Please sign in to comment.