[8.x] [Lens] Show drag and drop options in the in-line editor (#215892) (#216518)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Lens] Show drag and drop options in the in-line editor
(#215892)](https://github.com/elastic/kibana/pull/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":"106958839+mariairiartef@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-25T17:04:09Z","message":"[Lens]
Show drag and drop options in the in-line editor (#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 (#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 (#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 <106958839+mariairiartef@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2025-03-31 20:30:32 +02:00 committed by GitHub
parent 2fddb4eb7b
commit 3832386eaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@
*/
import React, { useMemo, memo, useCallback } from 'react';
import { EuiForm, euiBreakpoint, useEuiTheme } from '@elastic/eui';
import { EuiForm, euiBreakpoint, useEuiTheme, useEuiOverflowScroll } from '@elastic/eui';
import { ActionExecutionContext } from '@kbn/ui-actions-plugin/public';
import { isOfAggregateQueryType } from '@kbn/es-query';
import {
@ -257,12 +257,12 @@ export function LayerPanels(
return (
<EuiForm
className="eui-yScroll"
css={css`
.lnsApp & {
padding: ${euiTheme.size.base} ${euiTheme.size.base} ${euiTheme.size.xl}
calc(400px + ${euiTheme.size.base});
margin-left: -400px;
${useEuiOverflowScroll('y')}
${euiBreakpoint(euiThemeContext, ['xs', 's', 'm'])} {
padding-left: ${euiTheme.size.base};
margin-left: 0;