Skip to content

Commit bdf619e

Browse files
feat: collapse toolbar when panel header overflows
1 parent df63482 commit bdf619e

4 files changed

Lines changed: 19 additions & 18 deletions

File tree

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"react-ocl-nmr": "^4.1.1",
114114
"react-plot": "^3.1.2",
115115
"react-rnd": "^10.5.2",
116-
"react-science": "^19.4.0",
116+
"react-science": "^19.5.1",
117117
"react-table": "^7.8.0",
118118
"smart-array-filter": "^5.0.0",
119119
"yup": "^1.7.1",

src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ export default function MoleculePanelHeader(props: MoleculePanelHeaderProps) {
384384
{dialog.autoLabelDatabaseDialog && (
385385
<MoleculeAutoLabelsDatabaseModal onClose={closeDialog} />
386386
)}
387-
<Toolbar>
387+
<Toolbar overflow="collapse">
388388
{renderSource === 'predictionPanel' && <AboutPredictionModal />}
389389
{renderSource === 'moleculePanel' && (
390390
<ToolbarPopoverItem

src/component/panels/header/DefaultPanelHeader.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const styles: Record<'leftContainer', CSSProperties> = {
99
display: 'flex',
1010
flexDirection: 'row',
1111
flex: 1,
12+
width: '100%',
1213
},
1314
};
1415

@@ -74,7 +75,7 @@ function DefaultPanelHeader(props: DefaultPanelHeaderProps) {
7475
total={hideCounter ? undefined : total}
7576
>
7677
<div style={styles.leftContainer}>
77-
<Toolbar>
78+
<Toolbar overflow="collapse">
7879
{onDelete && (
7980
<Toolbar.Item
8081
id="delete-button"

0 commit comments

Comments
 (0)