diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-06-14 09:05:38 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-06-14 09:05:38 +0200 |
commit | 1ade35210767854624e32f2d635662645e08e31c (patch) | |
tree | 68288c7d23398edb373a6070524ed0d4065a2bbb /components/selection.tsx | |
parent | c5bf7ef263c58458103bc88a4964b84ffe450dc1 (diff) |
zoom selection with timeline :tada:
Diffstat (limited to 'components/selection.tsx')
-rw-r--r-- | components/selection.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/selection.tsx b/components/selection.tsx index ad86f9f..a039f79 100644 --- a/components/selection.tsx +++ b/components/selection.tsx @@ -65,6 +65,7 @@ function Corner(props: { export default function Selection(props: { width: number; height: number; + frameWidth: number; left?: slideTypes; right?: slideTypes; className?: string; @@ -73,7 +74,7 @@ export default function Selection(props: { return <div className={'selection ' + props.className} style={{ - width: props.width, + width: `calc(var(--zoom) * ${props.frameWidth} * 1px + 12px)`, height: props.height, '--corner-size': small ? '6px' : '12px', } as CSSProperties} |