Skip to content

Commit

Permalink
feat: specify whether the split pane is initially closed or not
Browse files Browse the repository at this point in the history
close #1494
  • Loading branch information
hamed-musallam committed Apr 27, 2022
1 parent fc0c464 commit ecc7b86
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -46,7 +46,7 @@
},
"dependencies": {
"@emotion/react": "^11.9.0",
"analysis-ui-components": "^0.11.1",
"analysis-ui-components": "^0.12.0",
"cheminfo-font": "^1.8.1",
"cheminfo-types": "^1.1.0",
"d3": "^7.4.4",
Expand Down
5 changes: 5 additions & 0 deletions src/component/NMRium.tsx
Expand Up @@ -133,6 +133,7 @@ export type NMRiumPreferences = Partial<{
hideSetSumFromMolecule: boolean;
hideGeneralSettings: boolean;
experimentalFeatures: PanelPreferencesType;
hidePanelOnLoad: boolean;
}>;
panels: Partial<{
spectraPanel: PanelPreferencesType;
Expand Down Expand Up @@ -336,6 +337,10 @@ function InnerNMRium({
initialSeparation="590px"
orientation="horizontal"
sideSeparation="end"
initialClosed={
preferences?.general?.hidePanelOnLoad ||
false
}
>
<div css={viewerContainerStyle}>
<KeysListenerTracker />
Expand Down

0 comments on commit ecc7b86

Please sign in to comment.