diff --git a/src/component/panels/MoleculesPanel/MoleculePanel.tsx b/src/component/panels/MoleculesPanel/MoleculePanel.tsx index 5250b0165..24ea83d74 100644 --- a/src/component/panels/MoleculesPanel/MoleculePanel.tsx +++ b/src/component/panels/MoleculesPanel/MoleculePanel.tsx @@ -137,6 +137,7 @@ function MoleculePanelInner(props: MoleculePanelInnerProps) { height={height - 60} molecule={mol} moleculeView={moleculesView?.[mol.id] || {}} + showLabel={false} /> diff --git a/src/component/panels/MoleculesPanel/MoleculeStructure.tsx b/src/component/panels/MoleculesPanel/MoleculeStructure.tsx index 80ceb7c56..695f6a727 100644 --- a/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +++ b/src/component/panels/MoleculesPanel/MoleculeStructure.tsx @@ -19,7 +19,7 @@ interface MoleculeStructureProps extends Pick { moleculeView: MoleculeView; renderAsSVG?: boolean; molecule: StateMoleculeExtended; - showMoleculeLabel?: boolean; + showLabel?: boolean; index?: number; } @@ -54,7 +54,7 @@ export function MoleculeStructure(props: MoleculeStructureProps) { width, height, renderAsSVG = false, - showMoleculeLabel, + showLabel, index = 0, } = props; const { @@ -76,7 +76,7 @@ export function MoleculeStructure(props: MoleculeStructureProps) { const baseProps: MolfileSvgRendererProps = { height, width, - label: (showMoleculeLabel ?? moleculeView.showLabel) ? molecule.label : '', + label: (showLabel ?? moleculeView.showLabel) ? molecule.label : '', labelFontSize: 15, labelColor: 'rgba(138, 59, 59, 1)', molfile: molecule.molfile,