Browse Source

style: tagview 左右对称

xingyu 2 years ago
parent
commit
02174383a7

+ 3 - 3
yudao-ui-admin-vue3/src/layout/components/TagsView/src/TagsView.vue

@@ -495,7 +495,7 @@ $prefix-cls: #{$namespace}-tags-view;
     position: relative;
     top: 2px;
     height: calc(100% - 4px);
-    padding-right: 20px;
+    padding-right: 16px;
     margin-left: 4px;
     font-size: 12px;
     border-radius: 3px 3px 3px 3px;
@@ -505,7 +505,7 @@ $prefix-cls: #{$namespace}-tags-view;
     &--close {
       position: absolute;
       top: 50%;
-      right: 4px;
+      right: 3px;
       display: none;
       transform: translate(0, -50%);
     }
@@ -553,7 +553,7 @@ $prefix-cls: #{$namespace}-tags-view;
       position: relative;
       top: 2px;
       height: calc(100% - 4px);
-      padding-right: 20px;
+      padding-right: 16px;
       font-size: 12px;
       border-radius: 3px 3px 3px 3px;
       cursor: pointer;