Skip to content

Commit

Permalink
[APM] Responsive layout for backends detail (#108680)
Browse files Browse the repository at this point in the history
Closes #108022.
  • Loading branch information
dgieselaar authored Aug 17, 2021
1 parent 6a39dc1 commit 0e547e4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { BackendDetailDependenciesTable } from './backend_detail_dependencies_ta
import { BackendThroughputChart } from './backend_throughput_chart';
import { BackendFailedTransactionRateChart } from './backend_error_rate_chart';
import { BackendDetailTemplate } from '../../routing/templates/backend_detail_template';
import { useBreakPoints } from '../../../hooks/use_break_points';

export function BackendDetailOverview() {
const {
Expand Down Expand Up @@ -53,12 +54,17 @@ export function BackendDetailOverview() {
},
]);

const largeScreenOrSmaller = useBreakPoints().isLarge;

return (
<ApmBackendContextProvider>
<BackendDetailTemplate title={backendName}>
<SearchBar showTimeComparison />
<ChartPointerEventContextProvider>
<EuiFlexGroup direction="row" gutterSize="s">
<EuiFlexGroup
direction={largeScreenOrSmaller ? 'column' : 'row'}
gutterSize="s"
>
<EuiFlexItem>
<EuiPanel hasBorder={true}>
<EuiTitle size="xs">
Expand Down

0 comments on commit 0e547e4

Please sign in to comment.