Skip to content

Commit b02c8c6

Browse files
zdxxxxxxmac
andauthored
fix: 修复TagsView居中样式问题 (#227)
Co-authored-by: mac <[email protected]>
1 parent f7d4ea1 commit b02c8c6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/layouts/components/TagsView/index.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ listenerRouteChange((route) => {
210210
overflow: hidden;
211211
.tags-view-wrapper {
212212
.tags-view-item {
213-
display: inline-block;
213+
display: inline-flex;
214+
align-items: center;
215+
justify-content: center;
214216
position: relative;
215217
cursor: pointer;
216218
height: 26px;
@@ -234,8 +236,8 @@ listenerRouteChange((route) => {
234236
border-color: var(--v3-tagsview-tag-active-border-color);
235237
}
236238
.el-icon {
237-
margin: 0 2px;
238-
vertical-align: middle;
239+
margin-left: 5px;
240+
margin-right: 1px;
239241
border-radius: 50%;
240242
&:hover {
241243
background-color: var(--v3-tagsview-tag-icon-hover-bg-color);

0 commit comments

Comments
 (0)