Skip to content

Commit

Permalink
fix: tabBarGutter missing
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed May 16, 2021
1 parent 318eaf0 commit df61cb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/TabNavList/OperationNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function OperationNode(

// ========================= Render =========================
const moreStyle: React.CSSProperties = {
[rtl ? 'marginLeft' : 'marginRight']: tabBarGutter,
[rtl ? 'marginRight' : 'marginLeft']: tabBarGutter,
};
if (!tabs.length) {
moreStyle.visibility = 'hidden';
Expand Down
4 changes: 2 additions & 2 deletions src/TabNavList/TabNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ function TabNode(

const nodeStyle: React.CSSProperties = {};
if (tabPosition === 'top' || tabPosition === 'bottom') {
nodeStyle[rtl ? 'marginLeft' : 'marginRight'] = tabBarGutter;
nodeStyle[rtl ? 'marginRight' : 'marginLeft'] = tabBarGutter;
} else {
nodeStyle.marginBottom = tabBarGutter;
nodeStyle.marginTop = tabBarGutter;
}

const removable = editable && closable !== false && !disabled;
Expand Down

1 comment on commit df61cb7

@vercel
Copy link

@vercel vercel bot commented on df61cb7 May 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.