|
|
|
@ -1,4 +1,4 @@ |
|
|
|
import { cx, css } from '@emotion/css'; |
|
|
|
import { css } from '@emotion/css'; |
|
|
|
import React, { PureComponent } from 'react'; |
|
|
|
import React, { PureComponent } from 'react'; |
|
|
|
|
|
|
|
|
|
|
|
import { LogRowModel, Field, LinkModel } from '@grafana/data'; |
|
|
|
import { LogRowModel, Field, LinkModel } from '@grafana/data'; |
|
|
|
@ -19,12 +19,11 @@ class UnThemedLogRowMessageDetectedFields extends PureComponent<Props> { |
|
|
|
render() { |
|
|
|
render() { |
|
|
|
const { row, showDetectedFields, getFieldLinks, wrapLogMessage } = this.props; |
|
|
|
const { row, showDetectedFields, getFieldLinks, wrapLogMessage } = this.props; |
|
|
|
const fields = getAllFields(row, getFieldLinks); |
|
|
|
const fields = getAllFields(row, getFieldLinks); |
|
|
|
const wrapClassName = cx( |
|
|
|
const wrapClassName = wrapLogMessage |
|
|
|
wrapLogMessage && |
|
|
|
? '' |
|
|
|
css` |
|
|
|
: css` |
|
|
|
white-space: pre-wrap; |
|
|
|
white-space: nowrap; |
|
|
|
` |
|
|
|
`;
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const line = showDetectedFields |
|
|
|
const line = showDetectedFields |
|
|
|
.map((parsedKey) => { |
|
|
|
.map((parsedKey) => { |
|
|
|
|