mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Backport This will backport the following commits from `main` to `8.11`: - [[Fleet] Fix integration sticky column after EUI upgrade (#169111)](https://github.com/elastic/kibana/pull/169111) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Nicolas Chaulet","email":"nicolas.chaulet@elastic.co"},"sourceCommit":{"committedDate":"2023-10-17T20:03:27Z","message":"[Fleet] Fix integration sticky column after EUI upgrade (#169111)","sha":"c369545439774c3a4405fd16bc72209b6952c082","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","backport:prev-minor","v8.12.0"],"number":169111,"url":"https://github.com/elastic/kibana/pull/169111","mergeCommit":{"message":"[Fleet] Fix integration sticky column after EUI upgrade (#169111)","sha":"c369545439774c3a4405fd16bc72209b6952c082"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/169111","number":169111,"mergeCommit":{"message":"[Fleet] Fix integration sticky column after EUI upgrade (#169111)","sha":"c369545439774c3a4405fd16bc72209b6952c082"}}]}] BACKPORT--> Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
This commit is contained in:
parent
2849d3f3f1
commit
36da4cc35e
1 changed files with 7 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
import React, { type ReactNode } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { EuiFlexGroup, EuiSpacer, EuiTitle } from '@elastic/eui';
|
||||
|
||||
|
@ -14,6 +15,10 @@ interface ControlsColumnProps {
|
|||
title: string | undefined;
|
||||
}
|
||||
|
||||
const FlexGroupWithMaxHeight = styled(EuiFlexGroup)`
|
||||
max-height: calc(100vh - 120px);
|
||||
`;
|
||||
|
||||
export const ControlsColumn = ({ controls, title }: ControlsColumnProps) => {
|
||||
let titleContent;
|
||||
if (title) {
|
||||
|
@ -27,9 +32,9 @@ export const ControlsColumn = ({ controls, title }: ControlsColumnProps) => {
|
|||
);
|
||||
}
|
||||
return (
|
||||
<EuiFlexGroup direction="column" gutterSize="none">
|
||||
<FlexGroupWithMaxHeight direction="column" gutterSize="none">
|
||||
{titleContent}
|
||||
{controls}
|
||||
</EuiFlexGroup>
|
||||
</FlexGroupWithMaxHeight>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue