Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(context-menu): portal submenus of context menu (#5456)
Seamus1b7de04e45b5
diff --git a/apps/web/src/lib/core/component/ContextMenu.tsx b/apps/web/src/lib/core/component/ContextMenu.tsxindex 9dc8f11a33..fa333ef77c 100644--- a/apps/web/src/lib/core/component/ContextMenu.tsx+++ b/apps/web/src/lib/core/component/ContextMenu.tsx@@ -428,17 +428,20 @@ export function ContextMenuContent(props: ParentProps<MenuContentProps>) {</Layer>}>- <Layer depth={2}>- <ContextMenu.SubContent- class={cn(- MENU_CONTENT_CLASS,- props.class,- props.width && menuWidths[props.width]- )}- >- {props.children}- </ContextMenu.SubContent>- </Layer>+ <ContextMenu.Portal>+ <Layer depth={2}>+ <ContextMenu.SubContent+ class={cn(+ MENU_CONTENT_CLASS,+ props.class,+ props.width && menuWidths[props.width]+ )}+ ref={contentRef}+ >+ {props.children}+ </ContextMenu.SubContent>+ </Layer>+ </ContextMenu.Portal></Show></MobileConditionalOverlay>);