Skip to content

Commit

Permalink
[7.x] [Uptime] Improve responsiveness details page (#67034) (#67313)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
shahzad31 and elasticmachine committed May 26, 2020
1 parent c0fcd81 commit f1a98c6
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 f1a98c6

Please sign in to comment.