diff --git a/packages/grafana-ui/src/components/Logs/LogRowMessage.tsx b/packages/grafana-ui/src/components/Logs/LogRowMessage.tsx index aa68cdf0292..dafc8505964 100644 --- a/packages/grafana-ui/src/components/Logs/LogRowMessage.tsx +++ b/packages/grafana-ui/src/components/Logs/LogRowMessage.tsx @@ -91,10 +91,6 @@ class UnThemedLogRowMessage extends PureComponent { ? cx([style.logsRowMatchHighLight, style.logsRowMatchHighLightPreview]) : cx([style.logsRowMatchHighLight]); const styles = getStyles(theme); - const whiteSpacePreWrap = { - label: 'white-space-pre-wrap', - whiteSpace: 'pre-wrap', - }; return ( @@ -116,7 +112,6 @@ class UnThemedLogRowMessage extends PureComponent { {needsHighlighter ? ( { getFieldLinks, } = this.props; const { renderAll } = this.state; - const { logsRowsTable, logsRowsHorizontalScroll } = getLogRowStyles(theme); + const { logsRowsTable } = getLogRowStyles(theme); const dedupedRows = deduplicatedRows ? deduplicatedRows : logRows; const hasData = logRows && logRows.length > 0; const dedupCount = dedupedRows ? dedupedRows.reduce((sum, row) => (row.duplicates ? sum + row.duplicates : sum), 0) : 0; const showDuplicates = dedupStrategy !== LogsDedupStrategy.none && dedupCount > 0; - const horizontalScrollWindow = wrapLogMessage ? '' : logsRowsHorizontalScroll; // Staged rendering const processedRows = dedupedRows ? dedupedRows : []; @@ -111,7 +111,7 @@ class UnThemedLogRows extends PureComponent { const getRowContext = this.props.getRowContext ? this.props.getRowContext : () => Promise.resolve([]); return ( -
+ {hasData && @@ -161,7 +161,7 @@ class UnThemedLogRows extends PureComponent { )}
-
+ ); } } diff --git a/packages/grafana-ui/src/components/Logs/getLogRowStyles.ts b/packages/grafana-ui/src/components/Logs/getLogRowStyles.ts index 03d19297f9f..2ba9fff402e 100644 --- a/packages/grafana-ui/src/components/Logs/getLogRowStyles.ts +++ b/packages/grafana-ui/src/components/Logs/getLogRowStyles.ts @@ -59,10 +59,6 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo font-size: ${theme.typography.size.sm}; width: 100%; `, - logsRowsHorizontalScroll: css` - label: logs-rows__horizontal-scroll; - overflow: scroll; - `, context: context, logsRow: css` label: logs-row; diff --git a/public/app/plugins/panel/logs/LogsPanel.tsx b/public/app/plugins/panel/logs/LogsPanel.tsx index 437193db178..4470f52276d 100644 --- a/public/app/plugins/panel/logs/LogsPanel.tsx +++ b/public/app/plugins/panel/logs/LogsPanel.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { LogRows, CustomScrollbar } from '@grafana/ui'; +import { LogRows } from '@grafana/ui'; import { LogsDedupStrategy, PanelProps } from '@grafana/data'; import { Options } from './types'; import { dataFrameToLogsModel } from 'app/core/logs_model'; @@ -25,17 +25,15 @@ export const LogsPanel: React.FunctionComponent = ({ const sortedNewResults = sortLogsResult(newResults, sortOrder); return ( - - - + ); };