From 4c564559f453ac99f26839b2f8b0b818432d10f7 Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Tue, 26 Nov 2024 12:16:35 +0800 Subject: [PATCH] Remove offset based on text length (#1037) Signed-off-by: Aaron Chong --- .../rmf-dashboard-framework/src/components/map/text-maker.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/rmf-dashboard-framework/src/components/map/text-maker.tsx b/packages/rmf-dashboard-framework/src/components/map/text-maker.tsx index ba269712b..13f210f6c 100644 --- a/packages/rmf-dashboard-framework/src/components/map/text-maker.tsx +++ b/packages/rmf-dashboard-framework/src/components/map/text-maker.tsx @@ -21,11 +21,10 @@ export const TextThreeRendering = ({ position, text }: TextThreeRenderingProps): }; const scaleFactor = isHovered ? 2 : 1.0; - const positionX = text && text.length > 5 ? -2 : -1; return ( <> - + {text && ( {text && (