From 9a983779ec6c99894d75542f02f0b5ad31b914d2 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Tue, 9 Jul 2024 17:28:08 +0000 Subject: [PATCH] fix(discover): break new lines in table cell fixes #7177 Signed-off-by: Joshua Li --- .../components/default_discover_table/_table_cell.scss | 4 ++++ .../components/default_discover_table/table_cell.tsx | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/plugins/discover/public/application/components/default_discover_table/_table_cell.scss b/src/plugins/discover/public/application/components/default_discover_table/_table_cell.scss index e87c3e62ae1f..71f2066279cd 100644 --- a/src/plugins/discover/public/application/components/default_discover_table/_table_cell.scss +++ b/src/plugins/discover/public/application/components/default_discover_table/_table_cell.scss @@ -95,3 +95,7 @@ font-size: inherit !important; } } + +.osdDocTableCell__dataField { + white-space: pre-wrap; +} diff --git a/src/plugins/discover/public/application/components/default_discover_table/table_cell.tsx b/src/plugins/discover/public/application/components/default_discover_table/table_cell.tsx index faebb3f78fd2..cfa5d1c5241b 100644 --- a/src/plugins/discover/public/application/components/default_discover_table/table_cell.tsx +++ b/src/plugins/discover/public/application/components/default_discover_table/table_cell.tsx @@ -34,8 +34,11 @@ const TableCellUI = ({ }: TableCellProps) => { const content = ( <> - {/* eslint-disable-next-line react/no-danger */} - +