Browse Source

fix: a minor style issue

Peng Xiao 3 years ago
parent
commit
fb69e99a82
1 changed files with 12 additions and 10 deletions
  1. 12 10
      tldraw/packages/react/src/components/Canvas/Canvas.tsx

+ 12 - 10
tldraw/packages/react/src/components/Canvas/Canvas.tsx

@@ -137,16 +137,18 @@ export const Canvas = observer(function Renderer<S extends TLReactShape>({
                 onEditingEnd={onEditingEnd}
               />
             ))}
-          {!app.isIn('select.pinching') && selectedShapes?.map(shape => (
-            <Indicator
-              key={'selected_indicator_' + shape.id}
-              shape={shape}
-              isEditing={shape === editingShape}
-              isHovered={false}
-              isBinding={false}
-              isSelected={true}
-            />
-          ))}
+          {!app.isIn('select.pinching') &&
+            selectedShapes?.length !== 1 &&
+            selectedShapes?.map(shape => (
+              <Indicator
+                key={'selected_indicator_' + shape.id}
+                shape={shape}
+                isEditing={shape === editingShape}
+                isHovered={false}
+                isBinding={false}
+                isSelected={true}
+              />
+            ))}
           {hoveredShape && app.isInAny('creating') && (
             <Indicator key={'hovered_indicator_' + hoveredShape.id} shape={hoveredShape} />
           )}