Skip to content

Commit db30093

Browse files
Merge pull request #7762 from BloomBooks/BL16044_Narrow
Fix edit tab top bar layout when window is narrow (BL-16044) (#7762)
2 parents e209070 + fb4169e commit db30093

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/BloomBrowserUI/react_components/TopBar/TopBar.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,14 @@ export const TopBar: React.FunctionComponent = () => {
118118
padding-top: 2px;
119119
display: flex;
120120
align-items: flex-start;
121-
gap: 100px;
122121
`}
123122
>
124123
<BloomTabs tabStates={tabStates} selectTab={handleSelectTab} />
124+
<div
125+
css={css`
126+
flex: 0 1 100px;
127+
`}
128+
/>
125129
<TopBarControls activeTab={activeTab} />
126130
<TopBarContextMenu targetRef={topBarRef} />
127131
</div>

src/BloomBrowserUI/react_components/TopBar/TopBarControls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const TopBarControls: React.FunctionComponent<{
1111
return (
1212
<div
1313
css={css`
14-
flex: 1;
14+
flex: 1 0 auto;
1515
display: flex;
1616
justify-content: space-between;
1717
padding-top: 2px;

0 commit comments

Comments
 (0)