Skip to content

Commit dcc700d

Browse files
committed
FIREFLY-2165: stop tab-width creep that hides the tab dropdown
1 parent b7feeeb commit dcc700d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/firefly/js/ui/panel/TabPanel.jsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ export function TabPanel ({value, onTabSelect, showOpenTabs, actions, slotProps,
8383
...tlSticky
8484
}}
8585
>
86-
<ResizeTabHeader slotProps={slotProps} children={children}/>
86+
{/* set flex: 1 and minWidth 0 to size the box to the remaining space */}
87+
<Box sx={{flex: 1, minWidth: 0}}>
88+
<ResizeTabHeader slotProps={slotProps} children={children}/>
89+
</Box>
8790
<Stack direction='row' flexShrink={0}>
8891
{actions && actions()}
8992
{showOpenTabs && (

0 commit comments

Comments
 (0)