From c6a62404fa7a46e7eea1a832291ed3634ec68c90 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 14 Jun 2021 10:18:15 +0200 Subject: selection working (with offsets) :tada: --- components/selection.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components') diff --git a/components/selection.tsx b/components/selection.tsx index a039f79..bcc1656 100644 --- a/components/selection.tsx +++ b/components/selection.tsx @@ -69,12 +69,13 @@ export default function Selection(props: { left?: slideTypes; right?: slideTypes; className?: string; + widthOffset?: number; }) { - var small = props.width < 24 || props.height < 24 || !props.left || !props.right; + var small = (props.width + props.widthOffset) < 24 || props.height < 24 || !props.left || !props.right; return