@@ -12,7 +12,7 @@ import { nodeHeight as nodeLayoutHeight, nodeWidth as nodeLayoutWidth } from '..
1212import { FormattedMessage } from 'react-intl' ;
1313import { LabeledGroupNodeType } from './labeled-group-node.type' ;
1414import { NODE_HEIGHT , NODE_WIDTH } from './constants' ;
15- import { labeledGroupNodeStyles , getContainerStyle , LABEL_BLOCK_HEIGHT } from './labeled-group-node.styles' ;
15+ import { labeledGroupNodeStyles , getContainerStyle , LABEL_GROUP_OFFSET } from './labeled-group-node.styles' ;
1616
1717export function LabeledGroupNode ( { data } : NodeProps < LabeledGroupNodeType > ) {
1818 const theme = useTheme ( ) ;
@@ -23,13 +23,13 @@ export function LabeledGroupNode({ data }: NodeProps<LabeledGroupNodeType>) {
2323 const horizontalPadding = ( nodeLayoutWidth - NODE_WIDTH ) / 2 ;
2424
2525 // Adjust position and size to account for border width and label block
26- const labeledGroupTopPosition = data . position . topLeft . row * nodeLayoutHeight - verticalPadding - LABEL_BLOCK_HEIGHT ;
26+ const labeledGroupTopPosition = data . position . topLeft . row * nodeLayoutHeight - verticalPadding - LABEL_GROUP_OFFSET ;
2727 const labeledGroupLeftPosition = data . position . topLeft . column * nodeLayoutWidth - horizontalPadding ;
2828
2929 const labeledGroupHeight =
3030 ( data . position . bottomRight . row - data . position . topLeft . row + 1 ) * nodeLayoutHeight -
3131 2 * verticalPadding +
32- 2 * LABEL_BLOCK_HEIGHT ;
32+ 2 * LABEL_GROUP_OFFSET ;
3333 const labeledGroupWidth = ( data . position . bottomRight . column - data . position . topLeft . column + 1 ) * nodeLayoutWidth ;
3434
3535 const isLight = theme . palette . mode === 'light' ;
0 commit comments