Skip to content

Commit

Permalink
fix(AdaptiveTabs): revert padding calculation (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemipanchuk authored Oct 25, 2024
1 parent 07f5751 commit c18f137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AdaptiveTabs/AdaptiveTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ export class AdaptiveTabs<T> extends React.Component<AdaptiveTabsProps<T>, Adapt

const maxWidth =
dimensionsWereCollected && typeof this.overflownTabsCurrentWidth[tabIndex] === 'number'
? this.overflownTabsCurrentWidth[tabIndex] + this.tabItemPaddingRight
? this.overflownTabsCurrentWidth[tabIndex] - this.tabItemPaddingRight
: `${this.tabMaxWidthInPercentsForScreenSize[currentContainerWidthName!]}%`;

const tabNode = <Tab {...item} active={item.id === activeTabID} />;
Expand Down

0 comments on commit c18f137

Please sign in to comment.