🎥 Make videos programmatically with React
fix(studio): Position context menus relative to the cursor
JonnyBurgerec5b00614eaf
diff --git a/packages/studio/src/components/ContextMenu.tsx b/packages/studio/src/components/ContextMenu.tsxindex 312aaca440..eea3e7aaa9 100644--- a/packages/studio/src/components/ContextMenu.tsx+++ b/packages/studio/src/components/ContextMenu.tsx@@ -102,8 +102,8 @@ const ContextMenuPortal: React.FC<{const spaceToBottom = size.windowSize.height - opened.top;const spaceToTop = opened.top;- const spaceToRight = size.windowSize.width - size.left;- const spaceToLeft = size.left + size.width;+ const spaceToRight = size.windowSize.width - opened.left;+ const spaceToLeft = opened.left;const minSpaceRequired = isMobileLayout? MAX_MOBILE_MENU_WIDTH