fix: a minor style issue

pull/6647/head
Peng Xiao 2022-09-06 23:36:27 +08:00
parent 0a1d100587
commit fb69e99a82
1 changed files with 12 additions and 10 deletions

View File

@ -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} />
)}