Skip to content

Commit f3f11f0

Browse files
authored
fix(workflow): Remove some padding to align incident chart (#25468)
1 parent 056c46b commit f3f11f0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

static/app/views/alerts/rules/details/metricChart.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ class MetricChart extends React.PureComponent<Props, State> {
614614

615615
return (
616616
<ChartPanel>
617-
<PanelBody withPadding>
617+
<StyledPanelBody withPadding>
618618
<ChartHeader>
619619
<ChartTitle>
620620
<PresetName>
@@ -631,7 +631,7 @@ class MetricChart extends React.PureComponent<Props, State> {
631631
maxThresholdValue,
632632
maxSeriesValue
633633
)}
634-
</PanelBody>
634+
</StyledPanelBody>
635635
{this.renderChartActions(totalDuration, criticalDuration, warningDuration)}
636636
</ChartPanel>
637637
);
@@ -691,6 +691,11 @@ const StatItem = styled('div')`
691691
margin: 0 ${space(2)} 0 0;
692692
`;
693693

694+
/* Override padding to make chart appear centered */
695+
const StyledPanelBody = styled(PanelBody)`
696+
padding-right: 6px;
697+
`;
698+
694699
const StatCount = styled('span')`
695700
margin-left: ${space(0.5)};
696701
margin-top: ${space(0.25)};

0 commit comments

Comments
 (0)