From 113365cff91635f4bfeeab4b1c36386961e2bebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Dr=C3=A4bing?= Date: Tue, 11 Feb 2020 16:08:39 +0100 Subject: [PATCH] Fix display of multiline logs in log panel and explore (#22057) Logs that contained line breaks were displayed in a single wrapped line and not respecting the line break characters. --- packages/grafana-ui/src/components/Logs/getLogRowStyles.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/grafana-ui/src/components/Logs/getLogRowStyles.ts b/packages/grafana-ui/src/components/Logs/getLogRowStyles.ts index fb28f653b20..aaa1b1b1055 100644 --- a/packages/grafana-ui/src/components/Logs/getLogRowStyles.ts +++ b/packages/grafana-ui/src/components/Logs/getLogRowStyles.ts @@ -135,6 +135,7 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo `, logsRowMessage: css` label: logs-row__message; + white-space: pre-wrap; word-break: break-all; `, //Log details sepcific CSS