Skip to content

Commit 3832386

Browse files
[8.x] [Lens] Show drag and drop options in the in-line editor (elastic#215892) (elastic#216518)
# Backport This will backport the following commits from `main` to `8.x`: - [[Lens] Show drag and drop options in the in-line editor (elastic#215892)](elastic#215892) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Maria Iriarte","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-03-25T17:04:09Z","message":"[Lens] Show drag and drop options in the in-line editor (elastic#215892)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/215441\n\nAdds the euiYScroll styles only to the Lens Editor app, not to the Lens\nin-line editor.\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n### Screen recording\n\n\nhttps://github.com/user-attachments/assets/3e86bcb8-f79d-4b96-91f8-e04d53a510ad","sha":"f62960c1d872e7dffef0a64ef94f3b3470b4b158","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","Feature:Lens","backport missing","backport:version","v9.1.0","v8.19.0"],"title":"[Lens] Show drag and drop options in the in-line editor","number":215892,"url":"https://github.com/elastic/kibana/pull/215892","mergeCommit":{"message":"[Lens] Show drag and drop options in the in-line editor (elastic#215892)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/215441\n\nAdds the euiYScroll styles only to the Lens Editor app, not to the Lens\nin-line editor.\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n### Screen recording\n\n\nhttps://github.com/user-attachments/assets/3e86bcb8-f79d-4b96-91f8-e04d53a510ad","sha":"f62960c1d872e7dffef0a64ef94f3b3470b4b158"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215892","number":215892,"mergeCommit":{"message":"[Lens] Show drag and drop options in the in-line editor (elastic#215892)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/215441\n\nAdds the euiYScroll styles only to the Lens Editor app, not to the Lens\nin-line editor.\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n### Screen recording\n\n\nhttps://github.com/user-attachments/assets/3e86bcb8-f79d-4b96-91f8-e04d53a510ad","sha":"f62960c1d872e7dffef0a64ef94f3b3470b4b158"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Maria Iriarte <[email protected]>
1 parent 2fddb4e commit 3832386

File tree

1 file changed

+2
-2
lines changed
  • x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel

1 file changed

+2
-2
lines changed

x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import React, { useMemo, memo, useCallback } from 'react';
9-
import { EuiForm, euiBreakpoint, useEuiTheme } from '@elastic/eui';
9+
import { EuiForm, euiBreakpoint, useEuiTheme, useEuiOverflowScroll } from '@elastic/eui';
1010
import { ActionExecutionContext } from '@kbn/ui-actions-plugin/public';
1111
import { isOfAggregateQueryType } from '@kbn/es-query';
1212
import {
@@ -257,12 +257,12 @@ export function LayerPanels(
257257

258258
return (
259259
<EuiForm
260-
className="eui-yScroll"
261260
css={css`
262261
.lnsApp & {
263262
padding: ${euiTheme.size.base} ${euiTheme.size.base} ${euiTheme.size.xl}
264263
calc(400px + ${euiTheme.size.base});
265264
margin-left: -400px;
265+
${useEuiOverflowScroll('y')}
266266
${euiBreakpoint(euiThemeContext, ['xs', 's', 'm'])} {
267267
padding-left: ${euiTheme.size.base};
268268
margin-left: 0;

0 commit comments

Comments
 (0)