Commit 0bd39e54 by Torkel Ödegaard Committed by GitHub

Merge pull request #15307 from grafana/fixed-explore-width-0

fixed explore width-0 issue
parents c71904e3 df17f7dc
......@@ -205,7 +205,12 @@ export class Explore extends React.PureComponent<ExploreProps> {
<div className="explore-container">
<QueryRows exploreEvents={this.exploreEvents} exploreId={exploreId} queryKeys={queryKeys} />
<AutoSizer onResize={this.onResize} disableHeight>
{({ width }) => (
{({ width }) => {
if (width === 0) {
return null;
}
return (
<main className="m-t-2" style={{ width }}>
<ErrorBoundary>
{showingStartPage && <StartPage onClickExample={this.onClickExample} />}
......@@ -226,7 +231,8 @@ export class Explore extends React.PureComponent<ExploreProps> {
)}
</ErrorBoundary>
</main>
)}
);
}}
</AutoSizer>
</div>
)}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment