From 15bbe6ab92a7e1c7d43b256cacb31eabde2b0370 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Mon, 30 Aug 2021 14:08:11 +0100 Subject: [PATCH] Fix user select on tooltips --- packages/tldraw/src/components/shared/tooltip.tsx | 1 + packages/tldraw/src/shape/shapes/ellipse/ellipse.tsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/packages/tldraw/src/components/shared/tooltip.tsx b/packages/tldraw/src/components/shared/tooltip.tsx index 5d82ab292..76a387cc0 100644 --- a/packages/tldraw/src/components/shared/tooltip.tsx +++ b/packages/tldraw/src/components/shared/tooltip.tsx @@ -37,6 +37,7 @@ const StyledContent = styled(RadixTooltip.Content, { display: 'flex', alignItems: 'center', fontFamily: '$ui', + userSelect: 'none', }) const StyledArrow = styled(RadixTooltip.Arrow, { diff --git a/packages/tldraw/src/shape/shapes/ellipse/ellipse.tsx b/packages/tldraw/src/shape/shapes/ellipse/ellipse.tsx index 0f644737e..9560b7286 100644 --- a/packages/tldraw/src/shape/shapes/ellipse/ellipse.tsx +++ b/packages/tldraw/src/shape/shapes/ellipse/ellipse.tsx @@ -11,6 +11,9 @@ import { import { defaultStyle, getPerfectDashProps, getShapeStyle } from '~shape/shape-styles' import getStroke from 'perfect-freehand' +// TODO +// [ ] Improve indicator shape for drawn shapes + export class Ellipse extends TLDrawShapeUtil { type = TLDrawShapeType.Ellipse as const toolType = TLDrawToolType.Bounds