Explore: Fix wrap lines toggle for results of queries with filter expression (#24915)

* Add pre-wrap to highlighter only for wrapped lines option

* Remove duplicated styling
pull/24789/head
Ivana Huckova 5 years ago committed by GitHub
parent 01de35d4db
commit 966b0a97b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/grafana-ui/src/components/Logs/LogRowMessage.tsx

@ -91,10 +91,6 @@ class UnThemedLogRowMessage extends PureComponent<Props> {
? cx([style.logsRowMatchHighLight, style.logsRowMatchHighLightPreview])
: cx([style.logsRowMatchHighLight]);
const styles = getStyles(theme);
const whiteSpacePreWrap = {
label: 'white-space-pre-wrap',
whiteSpace: 'pre-wrap',
};
return (
<td className={style.logsRowMessage}>
@ -116,7 +112,6 @@ class UnThemedLogRowMessage extends PureComponent<Props> {
<span className={cx(styles.positionRelative, { [styles.rowWithContext]: contextIsOpen })}>
{needsHighlighter ? (
<Highlighter
style={whiteSpacePreWrap}
textToHighlight={entry}
searchWords={highlights}
findChunks={findHighlightChunksInText}

Loading…
Cancel
Save