diff --git a/editor/src/components/canvas/controls/grid-controls.tsx b/editor/src/components/canvas/controls/grid-controls.tsx index 9362d108d06c..694719ff77cd 100644 --- a/editor/src/components/canvas/controls/grid-controls.tsx +++ b/editor/src/components/canvas/controls/grid-controls.tsx @@ -2684,19 +2684,24 @@ const SnapLine = React.memo( const labelHeight = 20 const isColumn = props.edge === 'column-start' || props.edge === 'column-end' + + const top = isColumn + ? props.container.y + : props.target.y + (props.edge === 'row-end' ? props.target.height : 0) + const left = !isColumn + ? props.container.x + : props.target.x + (props.edge === 'column-end' ? props.target.width : 0) + return (
{when( @@ -2711,7 +2716,6 @@ const SnapLine = React.memo( textAlign: axis === 'row' ? 'right' : undefined, width: labelWidth, height: labelHeight, - zoom: 1 / canvasScale, }} > {printPin(props.gridTemplate, targetMarker.position, axis)}