From e2fe9a05c102f19a49d09d3f2dcca602e000ebbb Mon Sep 17 00:00:00 2001 From: Danila Gulderov Date: Mon, 11 Mar 2024 22:14:28 +0300 Subject: [PATCH] fix menu cut off (#315) Signed-off-by: Danila Gulderov Signed-off-by: Eric Signed-off-by: Eric Wei Co-authored-by: Eric --- .../context_menu/context_menu_ui.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/public/components/context_menu/context_menu_ui.js b/public/components/context_menu/context_menu_ui.js index 49eaf36b..c145e2d9 100644 --- a/public/components/context_menu/context_menu_ui.js +++ b/public/components/context_menu/context_menu_ui.js @@ -18,7 +18,6 @@ export const popoverMenu = (savedObjectAvailable) => { ? 'euiContextMenuItem' : 'euiContextMenuItem euiContextMenuItem-isDisabled'; const button = savedObjectAvailable ? 'button' : 'button disabled'; - const popoverHeight = getPopoverHeight(false, savedObjectAvailable); const message = savedObjectAvailable ? i18n.translate('opensearch.reports.menu.visual.waitPrompt', { defaultMessage: @@ -30,7 +29,7 @@ export const popoverMenu = (savedObjectAvailable) => { }); const arrowRight = '100px'; - const popoverRight = '77px'; + const popoverRight = '170px'; return `
@@ -43,8 +42,8 @@ export const popoverMenu = (savedObjectAvailable) => {
-
-
+
+
${i18n.translate( @@ -138,7 +137,6 @@ export const popoverMenuDiscover = (savedObjectAvailable) => { ? 'euiContextMenuItem' : 'euiContextMenuItem euiContextMenuItem-isDisabled'; const button = savedObjectAvailable ? 'button' : 'button disabled'; - const popoverHeight = getPopoverHeight(true, savedObjectAvailable); const message = savedObjectAvailable ? i18n.translate('opensearch.reports.menu.csv.waitPrompt', { defaultMessage: @@ -148,7 +146,7 @@ export const popoverMenuDiscover = (savedObjectAvailable) => { defaultMessage: 'Save this search to enable CSV/XLSX reports.', }); const arrowRight = '60px'; - const popoverRight = '77px'; + const popoverRight = '170px'; return `
@@ -161,8 +159,8 @@ export const popoverMenuDiscover = (savedObjectAvailable) => {
-
-
+
+
${i18n.translate( @@ -192,7 +190,10 @@ export const popoverMenuDiscover = (savedObjectAvailable) => { <${button} class="${buttonClass}" type="button" data-test-subj="downloadPanel-GeneratePDF" id="generateXLSX"> - ${i18n.translate('opensearch.reports.menu.csv.generateXLSX', { defaultMessage: 'Generate XLSX' })} + ${i18n.translate( + 'opensearch.reports.menu.csv.generateXLSX', + { defaultMessage: 'Generate XLSX' } + )}