Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
[Logs UI] Avoid unnecessary scrolling of the log analysis results tab (
Browse files Browse the repository at this point in the history
…elastic#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.
  • Loading branch information
weltenwort authored Aug 28, 2019
1 parent c72a22e commit b0df7a8
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -186,7 +188,7 @@ export const AnalysisResultsContent = ({
</EuiFlexGroup>
</EuiPanel>
</EuiPage>
<EuiPage style={{ minHeight: '100vh' }}>
<ExpandingPage>
<EuiPageBody>
<EuiPageContent>
<EuiPageContentBody>
Expand All @@ -199,9 +201,13 @@ export const AnalysisResultsContent = ({
</EuiPageContentBody>
</EuiPageContent>
</EuiPageBody>
</EuiPage>
</ExpandingPage>
</>
)}
</>
);
};

const ExpandingPage = euiStyled(EuiPage)`
flex: 1 0 0%;
`;

0 comments on commit b0df7a8

Please sign in to comment.