[Logs UI] Polish the UI for the log entry examples in the anomaly table (#82139)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
36ab99e546
commit
b246701d39
|
@ -46,4 +46,5 @@ const Wrapper = euiStyled.div`
|
|||
flex-direction: column;
|
||||
flex: 1 0 0%;
|
||||
overflow: hidden;
|
||||
padding-top: 1px; // Buffer for the "Reload" buttons' hover state
|
||||
`;
|
||||
|
|
|
@ -10,7 +10,7 @@ import React from 'react';
|
|||
export const LogEntryExampleMessagesEmptyIndicator: React.FunctionComponent<{
|
||||
onReload: () => void;
|
||||
}> = ({ onReload }) => (
|
||||
<EuiFlexGroup alignItems="center" justifyContent="center">
|
||||
<EuiFlexGroup alignItems="center">
|
||||
<EuiFlexItem grow={false} className="eui-textNoWrap">
|
||||
<FormattedMessage
|
||||
id="xpack.infra.logs.logEntryExamples.exampleEmptyDescription"
|
||||
|
|
|
@ -10,7 +10,7 @@ import React from 'react';
|
|||
export const LogEntryExampleMessagesFailureIndicator: React.FunctionComponent<{
|
||||
onRetry: () => void;
|
||||
}> = ({ onRetry }) => (
|
||||
<EuiFlexGroup alignItems="center" justifyContent="center">
|
||||
<EuiFlexGroup alignItems="center">
|
||||
<EuiFlexItem grow={false} className="eui-textNoWrap">
|
||||
<EuiTextColor color="danger">
|
||||
<FormattedMessage
|
||||
|
|
|
@ -51,9 +51,11 @@ export const AnomaliesTableExpandedRow: React.FunctionComponent<{
|
|||
<>
|
||||
<ExpandedContentWrapper direction="column">
|
||||
<EuiFlexItem>
|
||||
<EuiTitle size="s">
|
||||
<EuiTitle size="xs">
|
||||
<h3>{examplesTitle}</h3>
|
||||
</EuiTitle>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem>
|
||||
<LogEntryExampleMessages
|
||||
isLoading={isLoadingLogEntryExamples}
|
||||
hasFailedLoading={hasFailedLoadingLogEntryExamples}
|
||||
|
@ -84,8 +86,8 @@ export const AnomaliesTableExpandedRow: React.FunctionComponent<{
|
|||
<EuiFlexGroup>
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiStat
|
||||
titleSize="s"
|
||||
title={`${numeral(anomaly.typical).format('0.00a')} ${i18n.translate(
|
||||
titleSize="xs"
|
||||
title={`${numeral(anomaly.typical).format('0.[00]a')} ${i18n.translate(
|
||||
'xpack.infra.logs.analysis.anomaliesExpandedRowTypicalRateTitle',
|
||||
{
|
||||
defaultMessage: '{typicalCount, plural, one {message} other {messages}}',
|
||||
|
@ -102,8 +104,8 @@ export const AnomaliesTableExpandedRow: React.FunctionComponent<{
|
|||
</EuiFlexItem>
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiStat
|
||||
titleSize="s"
|
||||
title={`${numeral(anomaly.actual).format('0.00a')} ${i18n.translate(
|
||||
titleSize="xs"
|
||||
title={`${numeral(anomaly.actual).format('0.[00]a')} ${i18n.translate(
|
||||
'xpack.infra.logs.analysis.anomaliesExpandedRowActualRateTitle',
|
||||
{
|
||||
defaultMessage: '{actualCount, plural, one {message} other {messages}}',
|
||||
|
|
Loading…
Reference in a new issue