Fix bounds background, fix color for group border

This commit is contained in:
Steve Ruiz 2021-07-10 23:16:10 +01:00
parent 76831567da
commit 9c867ae584
2 changed files with 6 additions and 4 deletions

View file

@ -29,7 +29,9 @@ export default function BoundsBg(): JSX.Element {
const bounds = useSelector((state) => state.values.selectedBounds)
const isSelecting = useSelector((s) => s.isIn('selecting'))
const shouldDisplay = useSelector((s) =>
s.isInAny('selecting', 'selectPinching')
)
const rotation = useSelector((s) => {
const selectedIds = s.values.selectedIds
@ -59,7 +61,7 @@ export default function BoundsBg(): JSX.Element {
if (isAllHandles) return null
if (!bounds) return null
if (!isSelecting) return null
if (!shouldDisplay) return null
const { width, height } = bounds

View file

@ -168,8 +168,8 @@ const group = registerShapeUtils<GroupShape>({
const StyledGroupShape = styled('rect', {
zDash: 5,
zStrokeWidth: 1,
stroke: '$text',
zStrokeWidth: 1.5,
stroke: '$border',
})
export default group