Skip to content

Commit df61cb7

Browse files
committed
fix: tabBarGutter missing
close ant-design/ant-design#30526
1 parent 318eaf0 commit df61cb7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/TabNavList/OperationNode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function OperationNode(
141141

142142
// ========================= Render =========================
143143
const moreStyle: React.CSSProperties = {
144-
[rtl ? 'marginLeft' : 'marginRight']: tabBarGutter,
144+
[rtl ? 'marginRight' : 'marginLeft']: tabBarGutter,
145145
};
146146
if (!tabs.length) {
147147
moreStyle.visibility = 'hidden';

src/TabNavList/TabNode.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ function TabNode(
4747

4848
const nodeStyle: React.CSSProperties = {};
4949
if (tabPosition === 'top' || tabPosition === 'bottom') {
50-
nodeStyle[rtl ? 'marginLeft' : 'marginRight'] = tabBarGutter;
50+
nodeStyle[rtl ? 'marginRight' : 'marginLeft'] = tabBarGutter;
5151
} else {
52-
nodeStyle.marginBottom = tabBarGutter;
52+
nodeStyle.marginTop = tabBarGutter;
5353
}
5454

5555
const removable = editable && closable !== false && !disabled;

0 commit comments

Comments
 (0)