Skip to content

Commit

Permalink
UI adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
mgiota committed May 6, 2022
1 parent e18906a commit 23b4a4f
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ const Divider = euiStyled.div`
height: 100%;
`;

const StyledStat = euiStyled(EuiStat)`
.euiText {
line-height: 1;
}
`;

const ConditionalWrap = ({
condition,
wrap,
Expand Down Expand Up @@ -67,7 +73,7 @@ export const renderRuleStats = (
</EuiButtonEmpty>
)}
>
<EuiStat
<StyledStat
title={ruleStats.disabled}
description={i18n.translate('xpack.observability.alerts.ruleStats.disabled', {
defaultMessage: 'Disabled',
Expand All @@ -90,7 +96,7 @@ export const renderRuleStats = (
</EuiButtonEmpty>
)}
>
<EuiStat
<StyledStat
title={ruleStats.muted + ruleStats.snoozed}
description={i18n.translate('xpack.observability.alerts.ruleStats.muted', {
defaultMessage: 'Snoozed',
Expand All @@ -113,7 +119,7 @@ export const renderRuleStats = (
</EuiButtonEmpty>
)}
>
<EuiStat
<StyledStat
title={ruleStats.error}
description={i18n.translate('xpack.observability.alerts.ruleStats.errors', {
defaultMessage: 'Errors',
Expand All @@ -127,7 +133,7 @@ export const renderRuleStats = (
</ConditionalWrap>
);
return [
<EuiStat
<StyledStat
title={ruleStats.total}
description={i18n.translate('xpack.observability.alerts.ruleStats.ruleCount', {
defaultMessage: 'Rule count',
Expand Down

0 comments on commit 23b4a4f

Please sign in to comment.