From c758f0fde75871488d9c071d8c32a3984c94bdad Mon Sep 17 00:00:00 2001 From: Mark Dunphy Date: Thu, 27 Mar 2025 10:41:54 -0400 Subject: [PATCH] fix popover appearing off screen on initial open Signed-off-by: Mark Dunphy --- .../components/EntityContextMenu/EntityContextMenu.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/catalog/src/components/EntityContextMenu/EntityContextMenu.tsx b/plugins/catalog/src/components/EntityContextMenu/EntityContextMenu.tsx index 6cbd52e3ae..6bde89c957 100644 --- a/plugins/catalog/src/components/EntityContextMenu/EntityContextMenu.tsx +++ b/plugins/catalog/src/components/EntityContextMenu/EntityContextMenu.tsx @@ -145,6 +145,9 @@ export function EntityContextMenu(props: EntityContextMenuProps) { anchorOrigin={{ vertical: 'bottom', horizontal: 'right' }} transformOrigin={{ vertical: 'top', horizontal: 'right' }} aria-labelledby="long-menu" + PaperProps={{ + style: { minWidth: 200 }, + }} > {extraItems} @@ -184,8 +187,11 @@ export function EntityContextMenu(props: EntityContextMenuProps) { ) : ( - contextMenuItems.map(ExtraMenuItem => ( - + contextMenuItems.map((ContextMenuItem, idx) => ( + )) )}