[9.0] [Playground] Increase the height of the indices container (#212827) (#213180)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Playground] Increase the height of the indices container
(#212827)](https://github.com/elastic/kibana/pull/212827)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Saikat
Sarkar","email":"132922331+saikatsarkar056@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-05T00:34:42Z","message":"[Playground]
Increase the height of the indices container (#212827)\n\nThis PR
increase the height of the container for indices in
the\nplayground\n\n\n\n\nhttps://github.com/user-attachments/assets/0fbacb11-ce8e-4566-b07e-b6058de89af0","sha":"1e00a04c2b11cf69866bfc255486a286d54654b2","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","v8.18.0","v9.1.0"],"title":"[Playground]
Increase the height of the indices
container","number":212827,"url":"https://github.com/elastic/kibana/pull/212827","mergeCommit":{"message":"[Playground]
Increase the height of the indices container (#212827)\n\nThis PR
increase the height of the container for indices in
the\nplayground\n\n\n\n\nhttps://github.com/user-attachments/assets/0fbacb11-ce8e-4566-b07e-b6058de89af0","sha":"1e00a04c2b11cf69866bfc255486a286d54654b2"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212827","number":212827,"mergeCommit":{"message":"[Playground]
Increase the height of the indices container (#212827)\n\nThis PR
increase the height of the container for indices in
the\nplayground\n\n\n\n\nhttps://github.com/user-attachments/assets/0fbacb11-ce8e-4566-b07e-b6058de89af0","sha":"1e00a04c2b11cf69866bfc255486a286d54654b2"}}]}]
BACKPORT-->

Co-authored-by: Saikat Sarkar <132922331+saikatsarkar056@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2025-03-05 13:36:11 +11:00 committed by GitHub
parent d5b2c4733b
commit 6b23d94eba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -23,6 +23,7 @@ import {
} from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n-react';
import { i18n } from '@kbn/i18n';
import { css } from '@emotion/react';
import { EuiSelectableOption } from '@elastic/eui/src/components/selectable/selectable_option';
import { getIndicesWithNoSourceFields } from '../utils/create_query';
import { useIndicesFields } from '../hooks/use_indices_fields';
@ -62,6 +63,10 @@ export const SelectIndicesFlyout: React.FC<SelectIndicesFlyout> = ({ onClose })
<EuiSpacer />
<EuiSelectable
searchable
height="full"
css={css`
height: 70vh;
`}
searchProps={{
onChange: handleSearchChange,
}}

View file

@ -31,7 +31,7 @@ export const useQueryIndices = (
query: {
search_query: query,
exact,
size: 50,
size: 100,
},
});