Skip to content

Commit

Permalink
[Uptime]Reduce chart height on monitor detail page (#83777)
Browse files Browse the repository at this point in the history
* reduce chart height

* update
  • Loading branch information
shahzad31 authored Nov 20, 2020
1 parent 38aedcc commit f64f16b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { ChartEmptyState } from './chart_empty_state';
import { DurationAnomaliesBar } from './duration_line_bar_list';
import { AnomalyRecords } from '../../../state/actions';
import { UptimeThemeContext } from '../../../contexts';
import { MONITOR_CHART_HEIGHT } from '../../monitor';

interface DurationChartProps {
/**
Expand Down Expand Up @@ -86,7 +87,7 @@ export const DurationChartComponent = ({
};

return (
<ChartWrapper height="400px" loading={loading}>
<ChartWrapper height={MONITOR_CHART_HEIGHT} loading={loading}>
{hasLines ? (
<Chart>
<Settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { MonitorDuration } from './monitor_duration/monitor_duration_container';
interface MonitorChartsProps {
monitorId: string;
}
export const MONITOR_CHART_HEIGHT = '248px';

export const MonitorCharts = ({ monitorId }: MonitorChartsProps) => {
return (
Expand All @@ -20,7 +21,7 @@ export const MonitorCharts = ({ monitorId }: MonitorChartsProps) => {
<MonitorDuration monitorId={monitorId} />
</EuiFlexItem>
<EuiFlexItem>
<PingHistogram height="400px" isResponsive={false} />
<PingHistogram height={MONITOR_CHART_HEIGHT} isResponsive={false} />
</EuiFlexItem>
</EuiFlexGroup>
);
Expand Down

0 comments on commit f64f16b

Please sign in to comment.