From 8b4f6553f36da60a44ce8d06a2d63b0e54bb9165 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Sat, 2 Aug 2025 02:08:35 +0530 Subject: [PATCH] (fix:menu) left and right --- frontend/src/components/ContextMenu.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/ContextMenu.tsx b/frontend/src/components/ContextMenu.tsx index 6d83d8eb..d9482e3b 100644 --- a/frontend/src/components/ContextMenu.tsx +++ b/frontend/src/components/ContextMenu.tsx @@ -82,14 +82,14 @@ export default function ContextMenu({ // Adjust position based on specified position switch (position) { case 'bottom-left': - left = rect.left + scrollX - offset.x; + left = rect.right + scrollX - menuWidth + offset.x; break; case 'top-right': top = rect.top + scrollY - offset.y - menuHeight; break; case 'top-left': top = rect.top + scrollY - offset.y - menuHeight; - left = rect.left + scrollX - offset.x; + left = rect.right + scrollX - menuWidth + offset.x; break; // bottom-right is default }