From b034f288d39e6fc58472db8711e5ba7b18ebc66b Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 16 Jun 2021 15:35:43 +0200 Subject: better selection background + grabbing css --- components/selection.tsx | 43 ++++++++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 11 deletions(-) (limited to 'components') diff --git a/components/selection.tsx b/components/selection.tsx index bcc1656..52096df 100644 --- a/components/selection.tsx +++ b/components/selection.tsx @@ -35,7 +35,8 @@ function Corner(props: { fill='none' xmlns='http://www.w3.org/2000/svg' > - + + ; } @@ -49,15 +50,33 @@ function Corner(props: { xmlns='http://www.w3.org/2000/svg' > {{ - 'round': , - 'diamond': , - 'square': , + 'round': <> + + + , + 'diamond': <> + + + , + 'square': <> + + + , }[props.type]} ; } @@ -80,7 +99,9 @@ export default function Selection(props: { '--corner-size': small ? '6px' : '12px', } as CSSProperties} > -
+
+
+
-- cgit v1.2.3