Skip to content

Commit bfe648d

Browse files
authored
Fix alerts Count table title overflow wraps prematurely (#115364)
1 parent 533e5d8 commit bfe648d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

  • x-pack/plugins/security_solution/public/detections/components/alerts_kpis

x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_count_panel/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const AlertsCountPanel = memo<AlertsCountPanelProps>(
9494
<KpiPanel hasBorder data-test-subj="alertsCountPanel">
9595
<HeaderSection
9696
id={uniqueQueryId}
97-
title={i18n.COUNT_TABLE_TITLE}
97+
title={<span className="eui-textBreakNormal">{i18n.COUNT_TABLE_TITLE}</span>}
9898
titleSize="s"
9999
hideSubtitle
100100
>

x-pack/plugins/security_solution/public/detections/components/alerts_kpis/alerts_histogram_panel/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@ export const AlertsHistogramPanel = memo<AlertsHistogramPanelProps>(
257257
}, [showLinkToAlerts, goToDetectionEngine, formatUrl]);
258258

259259
const titleText = useMemo(
260-
() => (onlyField == null ? title : i18n.TOP(onlyField)),
260+
() => (
261+
<span className="eui-textBreakNormal">
262+
{onlyField == null ? title : i18n.TOP(onlyField)}
263+
</span>
264+
),
261265
[onlyField, title]
262266
);
263267

0 commit comments

Comments
 (0)