Skip to content

Commit 66786cb

Browse files
committed
fix(FileTabs): limit the max width * 2
1 parent 041b2ef commit 66786cb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/organisms/FileTabs/FileTabs.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export interface CubeFileTabsProps extends CubeFlexProps {
266266
onTabClick?: (string) => void;
267267
/** Handler that is called when the tab is closed. */
268268
onTabClose?: (string) => void;
269-
/** Styles for the each tab pane */
269+
/** Styles for each tab pane */
270270
paneStyles?: Styles;
271271
/** Whether the tabs are closable */
272272
isClosable?: boolean;
@@ -481,8 +481,7 @@ FileTabs.TabPane = function FileTabPane(allProps: CubeFileTabProps) {
481481

482482
return (
483483
<Block
484-
style={{ display: isCurrent ? 'block' : 'none' }}
485-
width="max 100%"
484+
style={{ display: isCurrent ? 'block' : 'none', maxWidth: '100%' }}
486485
flexGrow={1}
487486
{...props}
488487
>

0 commit comments

Comments
 (0)