diff --git a/public/app/features/explore/Explore.tsx b/public/app/features/explore/Explore.tsx index e82de044960..92a774e054c 100644 --- a/public/app/features/explore/Explore.tsx +++ b/public/app/features/explore/Explore.tsx @@ -498,82 +498,84 @@ export class Explore extends React.PureComponent { ].every((e) => e.length === 0); return ( - (this.scrollElement = scrollElement || undefined)} - > + <> - {datasourceInstance ? ( -
- - - - - - - {({ width }) => { - if (width === 0) { - return null; - } + (this.scrollElement = scrollElement || undefined)} + > + {datasourceInstance ? ( +
+ + + + + + + {({ width }) => { + if (width === 0) { + return null; + } - return ( -
- - {showPanels && ( - <> - {showMetrics && graphResult && ( - {this.renderGraphPanel(width)} - )} - {showRawPrometheus && ( - {this.renderRawPrometheus(width)} - )} - {showTable && {this.renderTablePanel(width)}} - {showLogs && {this.renderLogsPanel(width)}} - {showNodeGraph && {this.renderNodeGraphPanel()}} - {showFlameGraph && {this.renderFlameGraphPanel()}} - {showTrace && {this.renderTraceViewPanel()}} - {showLogsSample && {this.renderLogsSamplePanel()}} - {showCustom && {this.renderCustom(width)}} - {showNoData && {this.renderNoData()}} - - )} - {showRichHistory && ( - - )} - {showQueryInspector && ( - - )} - -
- ); - }} -
-
- ) : ( - this.renderEmptyState(styles.exploreContainer) - )} -
+ return ( +
+ + {showPanels && ( + <> + {showMetrics && graphResult && ( + {this.renderGraphPanel(width)} + )} + {showRawPrometheus && ( + {this.renderRawPrometheus(width)} + )} + {showTable && {this.renderTablePanel(width)}} + {showLogs && {this.renderLogsPanel(width)}} + {showNodeGraph && {this.renderNodeGraphPanel()}} + {showFlameGraph && {this.renderFlameGraphPanel()}} + {showTrace && {this.renderTraceViewPanel()}} + {showLogsSample && {this.renderLogsSamplePanel()}} + {showCustom && {this.renderCustom(width)}} + {showNoData && {this.renderNoData()}} + + )} + {showRichHistory && ( + + )} + {showQueryInspector && ( + + )} + +
+ ); + }} +
+
+ ) : ( + this.renderEmptyState(styles.exploreContainer) + )} +
+ ); } } diff --git a/public/app/features/explore/ExploreToolbar.tsx b/public/app/features/explore/ExploreToolbar.tsx index 11aa4ac0857..6db62e49b5e 100644 --- a/public/app/features/explore/ExploreToolbar.tsx +++ b/public/app/features/explore/ExploreToolbar.tsx @@ -41,12 +41,6 @@ const getStyles = (theme: GrafanaTheme2) => ({ transform: 'rotate(180deg)', }, }), - stickyToolbar: css({ - position: 'sticky', - top: 0, - // reducing zIndex to prevent overlapping the top nav - zIndex: theme.zIndex.navbarFixed - 1, - }), }); interface Props { @@ -136,7 +130,7 @@ export function ExploreToolbar({ exploreId, topOfViewRef, onChangeTime }: Props) }; return ( -
+
{refreshInterval && }