Skip to content

Commit

Permalink
[7.8] [Uptime] Improve responsiveness details page (#67034) (#67314)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
shahzad31 and elasticmachine authored May 26, 2020
1 parent 7598be0 commit c4e051b
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const MonitorDurationComponent = ({
}: DurationChartProps) => {
return (
<EuiPanel paddingSize="m">
<EuiFlexGroup>
<EuiFlexGroup alignItems="center" gutterSize="none" responsive={false}>
<EuiFlexItem>
<EuiTitle size="xs">
<h4>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,25 @@ const TitleStyle = styled(EuiTitle)`
margin-left: auto;
`;

const FlexGroupContainer = styled(EuiFlexGroup)`
&& {
@media only screen and (max-width: 768px) {
> :first-child {
flex-basis: 40% !important;
}
> :nth-child(2) {
order: 3;
}
> :nth-child(3) {
flex-basis: 60% !important;
}
}
}
`;

export const MonitorListHeader: React.FC = () => {
return (
<EuiFlexGroup alignItems="center">
<FlexGroupContainer alignItems="center">
<EuiFlexItem grow={false}>
<EuiTitle size="xs">
<h5>
Expand All @@ -44,6 +60,6 @@ export const MonitorListHeader: React.FC = () => {
</h5>
</TitleStyle>
</EuiFlexItem>
</EuiFlexGroup>
</FlexGroupContainer>
);
};

0 comments on commit c4e051b

Please sign in to comment.