File tree Expand file tree Collapse file tree
x-pack/plugins/uptime/public/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import { ChartEmptyState } from './chart_empty_state';
2727import { DurationAnomaliesBar } from './duration_line_bar_list' ;
2828import { AnomalyRecords } from '../../../state/actions' ;
2929import { UptimeThemeContext } from '../../../contexts' ;
30+ import { MONITOR_CHART_HEIGHT } from '../../monitor' ;
3031
3132interface DurationChartProps {
3233 /**
@@ -86,7 +87,7 @@ export const DurationChartComponent = ({
8687 } ;
8788
8889 return (
89- < ChartWrapper height = "400px" loading = { loading } >
90+ < ChartWrapper height = { MONITOR_CHART_HEIGHT } loading = { loading } >
9091 { hasLines ? (
9192 < Chart >
9293 < Settings
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { MonitorDuration } from './monitor_duration/monitor_duration_container';
1212interface MonitorChartsProps {
1313 monitorId : string ;
1414}
15+ export const MONITOR_CHART_HEIGHT = '250px' ;
1516
1617export const MonitorCharts = ( { monitorId } : MonitorChartsProps ) => {
1718 return (
@@ -20,7 +21,7 @@ export const MonitorCharts = ({ monitorId }: MonitorChartsProps) => {
2021 < MonitorDuration monitorId = { monitorId } />
2122 </ EuiFlexItem >
2223 < EuiFlexItem >
23- < PingHistogram height = "400px" isResponsive = { false } />
24+ < PingHistogram height = { MONITOR_CHART_HEIGHT } isResponsive = { false } />
2425 </ EuiFlexItem >
2526 </ EuiFlexGroup >
2627 ) ;
You can’t perform that action at this time.
0 commit comments