From e713ea1f46a2315717b2c761b2e85cab24159685 Mon Sep 17 00:00:00 2001 From: DDDDD12138 <43703884+DDDDD12138@users.noreply.github.com> Date: Wed, 13 Nov 2024 11:07:31 +0800 Subject: [PATCH] fix(tabs): prevent content overlap in tabs-nav-list (#51571) --- components/tabs/style/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/tabs/style/index.ts b/components/tabs/style/index.ts index 73cbda9edf..7d263bfe46 100644 --- a/components/tabs/style/index.ts +++ b/components/tabs/style/index.ts @@ -1003,8 +1003,8 @@ const genTabsStyle: GenerateStyle = (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', }, }, },