diff --git a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/edit_action_helpers.ts b/x-pack/plugins/lens/public/trigger_actions/open_lens_config/edit_action_helpers.ts index 3834b4ba7590e5..7ec70e687efe5f 100644 --- a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/edit_action_helpers.ts +++ b/x-pack/plugins/lens/public/trigger_actions/open_lens_config/edit_action_helpers.ts @@ -6,8 +6,6 @@ */ import React from 'react'; import './helpers.scss'; -import { css } from '@emotion/react'; -import { euiThemeVars } from '@kbn/ui-theme'; import { toMountPoint } from '@kbn/react-kibana-mount'; import { tracksOverlays } from '@kbn/presentation-containers'; import type { IEmbeddable } from '@kbn/embeddable-plugin/public'; @@ -74,10 +72,6 @@ const openInlineLensConfigEditor = ( overlayRef.close(); }, outsideClickCloses: true, - css: css` - max-width: calc(${euiThemeVars.euiSizeXXL} * 20); - min-width: calc(${euiThemeVars.euiSizeXXL} * 10); - `, } ); diff --git a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/helpers.scss b/x-pack/plugins/lens/public/trigger_actions/open_lens_config/helpers.scss index ccb6556d650a5f..fb1cab0605c91b 100644 --- a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/helpers.scss +++ b/x-pack/plugins/lens/public/trigger_actions/open_lens_config/helpers.scss @@ -4,6 +4,7 @@ @include euiBreakpoint('xs', 's', 'm') { clip-path: none; } + max-inline-size: $euiSizeXXL * 20; background: $euiColorLightestShade; .kbnOverlayMountWrapper { padding-left: $euiFormMaxWidth;