mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 00:37:04 -06:00
Logs: Fixed wrapping log lines from detected fields (#52108)
* fixed wrap in detected fields * removed cx
This commit is contained in:
parent
dfc7a98d87
commit
05ba08fd8b
@ -1,4 +1,4 @@
|
||||
import { cx, css } from '@emotion/css';
|
||||
import { css } from '@emotion/css';
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
import { LogRowModel, Field, LinkModel } from '@grafana/data';
|
||||
@ -19,12 +19,11 @@ class UnThemedLogRowMessageDetectedFields extends PureComponent<Props> {
|
||||
render() {
|
||||
const { row, showDetectedFields, getFieldLinks, wrapLogMessage } = this.props;
|
||||
const fields = getAllFields(row, getFieldLinks);
|
||||
const wrapClassName = cx(
|
||||
wrapLogMessage &&
|
||||
css`
|
||||
white-space: pre-wrap;
|
||||
`
|
||||
);
|
||||
const wrapClassName = wrapLogMessage
|
||||
? ''
|
||||
: css`
|
||||
white-space: nowrap;
|
||||
`;
|
||||
|
||||
const line = showDetectedFields
|
||||
.map((parsedKey) => {
|
||||
|
Loading…
Reference in New Issue
Block a user