Skip to content

Commit

Permalink
fix responsieness
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed May 19, 2020
1 parent 033355a commit c0af5bc
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: 574px) {
> :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 c0af5bc

Please sign in to comment.