File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ export default function Tabs(props: TabsProps) {
105
105
if ( activeItem . current && type === 'line' ) {
106
106
setSlideStyle ( {
107
107
width : activeItem . current . clientWidth ,
108
- left : activeItem . current . offsetLeft + 15 ,
108
+ left : activeItem . current . offsetLeft ,
109
109
} ) ;
110
110
}
111
111
}
@@ -117,10 +117,10 @@ export default function Tabs(props: TabsProps) {
117
117
< div className = { `${ prefixCls } -bar` } ref = { divContentRef } >
118
118
< div className = { `${ prefixCls } -nav` } style = { { width : 'max-content' } } >
119
119
{ renderNav ( children ) }
120
+ < div style = { slideStyle } className = { `${ prefixCls } -slide` } />
120
121
</ div >
121
122
</ div >
122
123
</ div >
123
- < div style = { slideStyle } className = { `${ prefixCls } -slide` } />
124
124
{ hiddenNav . length > 0 && (
125
125
< Popover
126
126
trigger = "click"
Original file line number Diff line number Diff line change 60
60
&-line &-slide {
61
61
background-color : #108ee9 ;
62
62
box-sizing : border-box ;
63
- bottom : 45 px ;
63
+ bottom : 0 ;
64
64
position : absolute ;
65
65
height : 1px ;
66
66
left : 0 ;
You can’t perform that action at this time.
0 commit comments