From 6e4de0f81cc8b552ca6bf9e7b180007d4f214afb Mon Sep 17 00:00:00 2001 From: Matias Chomicki Date: Tue, 9 Dec 2025 17:08:09 +0100 Subject: [PATCH] LogLine: add trailing spaces for copying (#114543) * LogLine: add trailing spaces for copying * Lint --- .../app/features/logs/components/panel/LogLine.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/public/app/features/logs/components/panel/LogLine.tsx b/public/app/features/logs/components/panel/LogLine.tsx index 17f628b5914..292f35ea75a 100644 --- a/public/app/features/logs/components/panel/LogLine.tsx +++ b/public/app/features/logs/components/panel/LogLine.tsx @@ -334,14 +334,14 @@ const Log = memo( <> {showTime && ( - {timestampResolution === 'ms' ? log.timestamp : log.timestampNs} + {timestampResolution === 'ms' ? log.timestamp : log.timestampNs}{' '} )} { // When logs are unwrapped, we want an empty column space to align with other log lines. } {(log.displayLevel || !wrapLogMessage) && ( - {log.displayLevel} + {log.displayLevel} )} {showUniqueLabels && log.uniqueLabels && ( @@ -395,7 +395,7 @@ const DisplayedFields = ({ if (field === OTEL_LOG_LINE_ATTRIBUTES_FIELD_NAME && syntaxHighlighting) { return ( - + {' '} ); } @@ -410,7 +410,7 @@ const DisplayedFields = ({ /> ) : ( log.getDisplayedFieldValue(field) - )} + )}{' '} ); }); @@ -434,7 +434,7 @@ const LogLineBody = ({ log, styles }: { log: LogListModel; styles: LogLineStyles if (log.hasAnsi) { return ( - + {' '} ); } @@ -448,13 +448,13 @@ const LogLineBody = ({ log, styles }: { log: LogListModel; styles: LogLineStyles highlightClassName={styles.matchHighLight} /> ) : ( - {log.body} + {log.body} ); } return ( - + {' '} ); };