mirror of https://github.com/ElemeFE/element
Tabs: fix right padding of last tab item in basic type top/bottom position
parent
ffc310d98d
commit
0c824d61c8
|
@ -34,7 +34,7 @@
|
||||||
} else {
|
} else {
|
||||||
tabSize = $el[`client${firstUpperCase(sizeName)}`];
|
tabSize = $el[`client${firstUpperCase(sizeName)}`];
|
||||||
if (sizeName === 'width') {
|
if (sizeName === 'width') {
|
||||||
tabSize -= index === 0 ? 20 : 40;
|
tabSize -= (index === 0 || index === this.tabs.length - 1) ? 20 : 40;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -228,12 +228,18 @@
|
||||||
.el-tabs__item:nth-child(2) {
|
.el-tabs__item:nth-child(2) {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
.el-tabs__item:last-child {
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
&.el-tabs--border-card, &.el-tabs--card,
|
&.el-tabs--border-card, &.el-tabs--card,
|
||||||
.el-tabs--left, .el-tabs--right {
|
.el-tabs--left, .el-tabs--right {
|
||||||
.el-tabs__item:nth-child(2) {
|
.el-tabs__item:nth-child(2) {
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
}
|
}
|
||||||
|
.el-tabs__item:last-child {
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@include m(bottom) {
|
@include m(bottom) {
|
||||||
|
|
Loading…
Reference in New Issue