From 9f58203c862030602b6405cd9ce1dc9090f04f38 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Wed, 14 Sep 2022 11:53:31 +0200 Subject: [PATCH] Set dimensions text above the dimension --- src/Components/SVG/Elements/Dimension.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/SVG/Elements/Dimension.tsx b/src/Components/SVG/Elements/Dimension.tsx index d59c5b4..fc0a5f6 100644 --- a/src/Components/SVG/Elements/Dimension.tsx +++ b/src/Components/SVG/Elements/Dimension.tsx @@ -82,7 +82,7 @@ export function Dimension(props: IDimensionProps): JSX.Element { x={(props.xStart + props.xEnd) / 2} y={props.yStart} style={{ - transform: `scale(${1 / scale}) translateX(-50%)`, + transform: `scale(${1 / scale}) translateX(-50%) translateY(-100%)`, transformBox: 'fill-box' }} >