From b0df7a82336095fe249233171d3e56db2077f3da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20St=C3=BCrmer?= Date: Thu, 29 Aug 2019 00:47:50 +0200 Subject: [PATCH] [Logs UI] Avoid unnecessary scrolling of the log analysis results tab (#44128) This replaces the 100vh height setting of the second page section with a flex directive, which causes it to take up the remaining space of the surrounding flex column. --- .../pages/logs/analysis/page_results_content.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/x-pack/legacy/plugins/infra/public/pages/logs/analysis/page_results_content.tsx b/x-pack/legacy/plugins/infra/public/pages/logs/analysis/page_results_content.tsx index d76c408248a3f..71c46230d5d7c 100644 --- a/x-pack/legacy/plugins/infra/public/pages/logs/analysis/page_results_content.tsx +++ b/x-pack/legacy/plugins/infra/public/pages/logs/analysis/page_results_content.tsx @@ -21,6 +21,8 @@ import { } from '@elastic/eui'; import dateMath from '@elastic/datemath'; import moment from 'moment'; + +import euiStyled from '../../../../../../common/eui_styled_components'; import { useTrackPageview } from '../../../hooks/use_track_metric'; import { useInterval } from '../../../hooks/use_interval'; import { useLogAnalysisResults } from '../../../containers/logs/log_analysis'; @@ -186,7 +188,7 @@ export const AnalysisResultsContent = ({ - + @@ -199,9 +201,13 @@ export const AnalysisResultsContent = ({ - + )} ); }; + +const ExpandingPage = euiStyled(EuiPage)` + flex: 1 0 0%; +`;