diff --git a/public/app/features/explore/Explore.tsx b/public/app/features/explore/Explore.tsx index 8993e49d98c..0a25babfd79 100644 --- a/public/app/features/explore/Explore.tsx +++ b/public/app/features/explore/Explore.tsx @@ -58,6 +58,13 @@ const getStyles = (theme: GrafanaTheme2) => { display: unset !important; padding: ${theme.spacing(1)}; `, + exploreContainer: css` + display: flex; + flex: 1 1 auto; + flex-direction: column; + padding: ${theme.spacing(2)}; + padding-top: 0; + `, }; }; @@ -208,9 +215,9 @@ export class Explore extends React.PureComponent { }); }; - renderEmptyState() { + renderEmptyState(exploreContainerStyles: string) { return ( -
+
); @@ -358,9 +365,9 @@ export class Explore extends React.PureComponent { scrollRefCallback={(scrollElement) => (this.scrollElement = scrollElement || undefined)} > - {datasourceMissing ? this.renderEmptyState() : null} + {datasourceMissing ? this.renderEmptyState(styles.exploreContainer) : null} {datasourceInstance && ( -
+