diff --git a/public/app/features/explore/Logs.tsx b/public/app/features/explore/Logs.tsx index c3e1417d04d..cf024b028cd 100644 --- a/public/app/features/explore/Logs.tsx +++ b/public/app/features/explore/Logs.tsx @@ -91,16 +91,6 @@ interface State { forceEscape: boolean; } -// We need to override css overflow of divs in Collapse element to enable sticky Logs navigation -const styleOverridesForStickyNavigation = css` - & > div { - overflow: visible; - & > div { - overflow: visible; - } - } -`; - class UnthemedLogs extends PureComponent { flipOrderTimer?: number; cancelFlippingTimer?: number; @@ -336,7 +326,7 @@ class UnthemedLogs extends PureComponent { return ( <> - + {logsVolumeEnabled && ( { /> )} - -
- - - - - - - - - - - - - - - ({ - label: capitalize(dedupType), - value: dedupType, - description: LogsDedupDescription[dedupType], - }))} - value={dedupStrategy} - onChange={this.onChangeDedup} - className={styles.radioButtons} - /> - - -
- - - -
-
- -
-
- + + + -
- + + + + + + + + + + + ({ + label: capitalize(dedupType), + value: dedupType, + description: LogsDedupDescription[dedupType], + }))} + value={dedupStrategy} + onChange={this.onChangeDedup} + className={styles.radioButtons} + /> + + +
+ + + +
+
+ +
+
+
- {!loading && !hasData && !scanning && ( -
- No logs found. - -
- )} - {scanning && ( -
- {scanText} - -
- )} - + +
+ {!loading && !hasData && !scanning && ( +
+ No logs found. + +
+ )} + {scanning && ( +
+ {scanText} + +
+ )} ); } diff --git a/public/app/features/explore/LogsContainer.tsx b/public/app/features/explore/LogsContainer.tsx index 817ff482335..4aba36b085d 100644 --- a/public/app/features/explore/LogsContainer.tsx +++ b/public/app/features/explore/LogsContainer.tsx @@ -1,3 +1,4 @@ +import { css } from '@emotion/css'; import React, { PureComponent } from 'react'; import { connect, ConnectedProps } from 'react-redux'; @@ -103,6 +104,16 @@ class LogsContainer extends PureComponent { return null; } + // We need to override css overflow of divs in Collapse element to enable sticky Logs navigation + const styleOverridesForStickyNavigation = css` + & > div { + overflow: visible; + & > div { + overflow: visible; + } + } + `; + return ( <> @@ -122,37 +133,39 @@ class LogsContainer extends PureComponent {
- this.props.setLogsVolumeEnabled(exploreId, enabled)} - logsVolumeData={logsVolumeData} - logsQueries={logsQueries} - width={width} - splitOpen={splitOpen} - loading={loading} - loadingState={loadingState} - loadLogsVolumeData={loadLogsVolumeData} - onChangeTime={this.onChangeTime} - onClickFilterLabel={onClickFilterLabel} - onClickFilterOutLabel={onClickFilterOutLabel} - onStartScanning={onStartScanning} - onStopScanning={onStopScanning} - absoluteRange={absoluteRange} - visibleRange={visibleRange} - timeZone={timeZone} - scanning={scanning} - scanRange={range.raw} - showContextToggle={this.showContextToggle} - getRowContext={this.getLogRowContext} - getFieldLinks={this.getFieldLinks} - addResultsToCache={() => addResultsToCache(exploreId)} - clearCache={() => clearCache(exploreId)} - /> + + this.props.setLogsVolumeEnabled(exploreId, enabled)} + logsVolumeData={logsVolumeData} + logsQueries={logsQueries} + width={width} + splitOpen={splitOpen} + loading={loading} + loadingState={loadingState} + loadLogsVolumeData={loadLogsVolumeData} + onChangeTime={this.onChangeTime} + onClickFilterLabel={onClickFilterLabel} + onClickFilterOutLabel={onClickFilterOutLabel} + onStartScanning={onStartScanning} + onStopScanning={onStopScanning} + absoluteRange={absoluteRange} + visibleRange={visibleRange} + timeZone={timeZone} + scanning={scanning} + scanRange={range.raw} + showContextToggle={this.showContextToggle} + getRowContext={this.getLogRowContext} + getFieldLinks={this.getFieldLinks} + addResultsToCache={() => addResultsToCache(exploreId)} + clearCache={() => clearCache(exploreId)} + /> + );