Skip to content

Commit 48d7e20

Browse files
committed
fix(FileTabs): limit the max width * 12
1 parent a12f0f8 commit 48d7e20

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/components/organisms/FileTabs/FileTabs.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,6 @@ const TabsPanelElement = tasty(Space, {
4646
whiteSpace: 'nowrap',
4747
styledScrollbar: true,
4848
padding: '1ow 1ow 0 1ow',
49-
},
50-
});
51-
52-
const TabsContainerElement = tasty(Flex, {
53-
styles: {
54-
flow: 'column',
55-
height: 'max 100%',
56-
width: 'max 100%',
57-
position: 'relative',
5849
fade: {
5950
'': false,
6051
'[data-is-left-fade]': '3x left',
@@ -68,6 +59,15 @@ const TabsContainerElement = tasty(Flex, {
6859
},
6960
});
7061

62+
const TabsContainerElement = tasty(Flex, {
63+
styles: {
64+
flow: 'column',
65+
height: 'max 100%',
66+
width: 'max 100%',
67+
position: 'relative',
68+
},
69+
});
70+
7171
const DirtyBadge = tasty({
7272
element: 'DirtyBadge',
7373
styles: {
@@ -350,11 +350,7 @@ export function FileTabs({
350350
}
351351

352352
return (
353-
<TabsContainerElement
354-
data-is-left-fade={leftFade || null}
355-
data-is-right-fade={rightFade || null}
356-
{...props}
357-
>
353+
<TabsContainerElement {...props}>
358354
<FileTabsContext.Provider
359355
value={{
360356
addTab,
@@ -364,7 +360,11 @@ export function FileTabs({
364360
currentTab: activeKey,
365361
}}
366362
>
367-
<TabsPanelElement ref={tabsRef}>
363+
<TabsPanelElement
364+
ref={tabsRef}
365+
data-is-left-fade={leftFade || null}
366+
data-is-right-fade={rightFade || null}
367+
>
368368
{tabs.map((tab) => {
369369
return (
370370
<Tab

0 commit comments

Comments
 (0)