fix(tabs): prevent content overlap in tabs-nav-list (#51571)

This commit is contained in:
DDDDD12138 2024-11-13 11:07:31 +08:00 committed by GitHub
parent 776cd5f5eb
commit e713ea1f46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1003,8 +1003,8 @@ const genTabsStyle: GenerateStyle<TabsToken> = (token: TabsToken): CSSObject =>
[`${componentCls}-centered`]: {
[`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {
[`${componentCls}-nav-wrap`]: {
[`&:not([class*='${componentCls}-nav-wrap-ping'])`]: {
justifyContent: 'center',
[`&:not([class*='${componentCls}-nav-wrap-ping']) > ${componentCls}-nav-list`]: {
margin: 'auto',
},
},
},