Skip to content

Commit

Permalink
Fix alerts Count table title overflow wraps prematurely (#115364)
Browse files Browse the repository at this point in the history
  • Loading branch information
machadoum authored Oct 19, 2021
1 parent 533e5d8 commit bfe648d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const AlertsCountPanel = memo<AlertsCountPanelProps>(
<KpiPanel hasBorder data-test-subj="alertsCountPanel">
<HeaderSection
id={uniqueQueryId}
title={i18n.COUNT_TABLE_TITLE}
title={<span className="eui-textBreakNormal">{i18n.COUNT_TABLE_TITLE}</span>}
titleSize="s"
hideSubtitle
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,11 @@ export const AlertsHistogramPanel = memo<AlertsHistogramPanelProps>(
}, [showLinkToAlerts, goToDetectionEngine, formatUrl]);

const titleText = useMemo(
() => (onlyField == null ? title : i18n.TOP(onlyField)),
() => (
<span className="eui-textBreakNormal">
{onlyField == null ? title : i18n.TOP(onlyField)}
</span>
),
[onlyField, title]
);

Expand Down

0 comments on commit bfe648d

Please sign in to comment.