修复区域Tab文字偏移问题,统一为水平居中布局并同步禁用角标偏移规则。 Made-with: Cursor
@@ -1110,7 +1110,7 @@
.region-tab-btn {
position: relative;
min-width: 108px;
- padding-right: 28px;
+ padding: 0 12px;
}
/**
@@ -1120,8 +1120,9 @@
*/
.region-tab-btn.el-button > :deep(span) {
position: static !important;
- /* 让内部包裹不再占据盒子,避免影响角标定位/居中计算 */
- display: contents;
+ display: inline-flex;
+ width: 100%;
+ justify-content: center;
.region-tab-btn .region-tab-inner {
@@ -1133,8 +1134,8 @@
.region-tab-btn .region-tab-badge {
position: absolute;
- top: 2px;
- right: 2px;
+ top: -8px;
+ right: -8px;
padding: 0 4px;
border-radius: 999px;
font-size: 10px;
@@ -1486,12 +1486,14 @@
.region-tab-inner {
@@ -1503,8 +1505,8 @@
.region-tab-badge {
@@ -954,12 +954,14 @@
@@ -971,8 +973,8 @@
@@ -952,12 +952,14 @@
@@ -969,8 +971,8 @@
@@ -3245,11 +3245,13 @@
display: inline-flex;
@@ -3259,8 +3261,8 @@
@@ -555,12 +555,14 @@
@@ -572,8 +574,8 @@
- top: 4px;
- right: 6px;
@@ -2676,12 +2676,14 @@
@@ -2693,8 +2695,8 @@
@@ -1538,12 +1538,14 @@
@@ -1555,8 +1557,8 @@
@@ -1061,12 +1061,14 @@
@@ -1078,8 +1080,8 @@