diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-06-27 10:04:46 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-06-27 10:04:46 +0200 |
commit | ffefeed888fe6f221a79575f8624257571eacf8d (patch) | |
tree | a40721186f380e51d071ec9385e04a6ef78c9558 /components | |
parent | 94824d7b8a12eb0d9d55935649c477ba65abe780 (diff) |
loop selection working + fix #1
Diffstat (limited to 'components')
-rw-r--r-- | components/selection.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/selection.tsx b/components/selection.tsx index 4be9767..618d854 100644 --- a/components/selection.tsx +++ b/components/selection.tsx @@ -90,14 +90,16 @@ export default function Selection(props: { right?: slideTypes; className?: string; widthOffset?: number; + visibility?: number; }) { - var small = (props.width + props.widthOffset) < 24 || props.height < 24 || !props.left || !props.right; + var small = !props.left || !props.right; return <div - className={'selection ' + props.className} + className={'selection ' + (props.className || '')} style={{ width: `calc(var(--zoom) * ${props.frameWidth} * 1px + 12px + ${props.widthOffset} * 1px)`, height: props.height, '--corner-size': small ? '6px' : '12px', + '--visibility': props.visibility, } as CSSProperties} > <div className='background fill left posabs dispinbl l0' /> |