From 7121f0aae5d37630ec448e0a0d487d2a948e1ae8 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Tue, 4 Oct 2022 15:40:59 +0200 Subject: [PATCH] Fix symbol's translate making the symbol overlap with the containers --- src/Components/SVG/Elements/Symbol.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/SVG/Elements/Symbol.tsx b/src/Components/SVG/Elements/Symbol.tsx index f63f66a..437d74e 100644 --- a/src/Components/SVG/Elements/Symbol.tsx +++ b/src/Components/SVG/Elements/Symbol.tsx @@ -33,7 +33,7 @@ export function Symbol(props: ISymbolProps): JSX.Element { preserveAspectRatio="none" style={{ fill: 'none', - transform: `scale(${1 / props.scale}) translateX(-50%) translateY(-50%)`, + transform: `scale(${1 / props.scale}) translateX(-50%) translateY(-100%)`, transformBox: 'fill-box' }} x={props.model.x}