From 4b3a052ea08ecf5b71710e0dd4fc8bee822e28ea Mon Sep 17 00:00:00 2001 From: ag-m2ms Date: Thu, 19 Nov 2020 09:53:58 +0100 Subject: [PATCH] Fixed layout and cross reference button --- js/components/common/Surfaces/Panel/index.js | 4 ++-- js/components/datasets/datasetMoleculeView.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/components/common/Surfaces/Panel/index.js b/js/components/common/Surfaces/Panel/index.js index db6b1bb84..1d204e8b3 100644 --- a/js/components/common/Surfaces/Panel/index.js +++ b/js/components/common/Surfaces/Panel/index.js @@ -114,7 +114,7 @@ export const Panel = memo( {title && ( 1 ? 5 : 6) : 12} + xs={hasExpansion || headerActions ? (headerActions && headerActions.length > 1 ? 4 : 6) : 12} className={classes.headerTitle} > {withTooltip ? ( @@ -136,7 +136,7 @@ export const Panel = memo( container direction="row" justify="flex-end" - xs={title ? (headerActions && headerActions.length > 1 ? 7 : 6) : 12} + xs={title ? (headerActions && headerActions.length > 1 ? 8 : 6) : 12} > {headerActions && headerActions.map((action, index) => ( diff --git a/js/components/datasets/datasetMoleculeView.js b/js/components/datasets/datasetMoleculeView.js index dd051e902..3f3588eac 100644 --- a/js/components/datasets/datasetMoleculeView.js +++ b/js/components/datasets/datasetMoleculeView.js @@ -739,7 +739,7 @@ export const DatasetMoleculeView = memo( setRef(ref.current); } }} - disabled={true} + disabled={disableUserInteraction} > X